3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); $foo = 1; switch($foo) { case true: print "foo is true (foo=$foo)"; break; case 1: print "foo is 1; (foo=$foo)"; break; }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0090.00916.61
8.3.50.0210.00018.17
8.3.40.0140.00718.84
8.3.30.0090.00618.54
8.3.20.0120.00021.76
8.3.10.0040.00423.48
8.3.00.0070.00019.25
8.2.180.0070.01118.41
8.2.170.0090.00922.96
8.2.160.0110.00720.39
8.2.150.0120.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0020.00520.70
8.2.110.0090.00022.27
8.2.100.0110.00017.91
8.2.90.0040.00417.84
8.2.80.0040.00419.16
8.2.70.0000.00817.93
8.2.60.0070.00018.22
8.2.50.0050.00318.10
8.2.40.0030.00521.10
8.2.30.0060.00319.39
8.2.20.0040.00417.97
8.2.10.0000.00818.00
8.2.00.0040.00418.10
8.1.280.0150.00325.92
8.1.270.0110.00722.09
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00423.92
8.1.230.0000.01122.79
8.1.220.0040.00417.77
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0060.00317.10
8.1.180.0040.00418.10
8.1.170.0060.00318.65
8.1.160.0040.00418.88
8.1.150.0000.00718.88
8.1.140.0040.00417.74
8.1.130.0000.01120.18
8.1.120.0000.00717.48
8.1.110.0050.00217.34
8.1.100.0070.00417.36
8.1.90.0060.00317.45
8.1.80.0050.00317.42
8.1.70.0000.00717.41
8.1.60.0060.00617.46
8.1.50.0060.00317.49
8.1.40.0050.00317.55
8.1.30.0000.00817.72
8.1.20.0000.00917.54
8.1.10.0030.00617.51
8.1.00.0040.00417.46
8.0.300.0040.00421.86
8.0.290.0000.00916.75
8.0.280.0030.00318.45
8.0.270.0100.00017.24
8.0.260.0000.00716.83
8.0.250.0030.00316.96
8.0.240.0030.00316.94
8.0.230.0030.00516.96
8.0.220.0000.00816.90
8.0.210.0030.00316.93
8.0.200.0060.00316.96
8.0.190.0050.00316.98
8.0.180.0070.00016.89
8.0.170.0060.00316.83
8.0.160.0000.00816.89
8.0.150.0040.00416.91
8.0.140.0040.00416.73
8.0.130.0050.00013.25
8.0.120.0050.00316.79
8.0.110.0040.00416.92
8.0.100.0000.00716.92
8.0.90.0050.00316.85
8.0.80.0040.01716.91
8.0.70.0000.00816.85
8.0.60.0030.00616.92
8.0.50.0040.00416.95
8.0.30.0100.00817.02
8.0.20.0140.00717.40
8.0.10.0000.00716.90
8.0.00.0130.00816.97
7.4.330.0000.00515.55
7.4.320.0030.00316.57
7.4.300.0030.00316.42
7.4.290.0070.00016.59
7.4.280.0030.00516.41
7.4.270.0040.00416.64
7.4.260.0030.00316.56
7.4.250.0070.00016.47
7.4.240.0000.00716.60
7.4.230.0070.00016.43
7.4.220.0000.00716.58
7.4.210.0090.00516.56
7.4.200.0050.00216.51
7.4.160.0080.00716.50
7.4.140.0130.00617.86
7.4.130.0060.01316.56
7.4.120.0120.00516.50
7.4.110.0100.00716.54
7.4.100.0100.00716.54
7.4.90.0100.01316.50
7.4.80.0070.01719.39
7.4.70.0100.00716.56
7.4.60.0030.01416.59
7.4.50.0060.00816.42
7.4.40.0060.01116.55
7.4.00.0080.00415.00
7.3.330.0050.00013.11
7.3.320.0000.00813.10
7.3.310.0030.00316.14
7.3.300.0030.00316.30
7.3.290.0000.00716.22
7.3.280.0060.00816.28
7.3.260.0060.01116.52
7.3.240.0110.01016.29
7.3.230.0060.01016.49
7.3.210.0140.00316.57
7.3.200.0090.00916.18
7.3.190.0030.01716.16
7.3.180.0070.01016.17
7.3.170.0170.00316.17
7.3.160.0090.00616.54
7.3.120.0070.00714.54
7.3.110.0000.01414.59
7.3.100.0110.00714.55
7.3.90.0030.00714.81
7.3.80.0140.00314.69
7.3.70.0030.01214.69
7.3.60.0030.00614.86
7.3.50.0030.00614.84
7.3.40.0060.00614.63
7.3.30.0080.00414.56
7.3.20.0060.00916.52
7.3.10.0060.00616.66
7.3.00.0290.00916.14
7.2.330.0040.01816.29
7.2.320.0080.01016.66
7.2.310.0130.00316.58
7.2.300.0140.00816.61
7.2.290.0050.01216.64
7.2.240.0070.00715.00
7.2.230.0090.00614.89
7.2.220.0040.01114.78
7.2.210.0120.00415.07
7.2.200.0090.00314.92
7.2.190.0070.00714.95
7.2.180.0060.00914.80
7.2.170.0100.00714.75
7.2.160.0080.00414.90
7.2.150.0100.00716.82
7.2.140.0110.00416.79
7.2.130.0100.01016.28
7.2.120.0200.00516.31
7.2.110.0320.00816.05
7.2.100.0360.00716.08
7.2.90.0230.00915.91
7.2.80.0440.00715.95
7.2.70.0320.00816.05
7.2.60.0250.00716.22
7.2.50.0290.00716.18
7.2.40.1180.01016.65
7.2.30.0900.00916.71
7.2.20.0960.00716.75
7.2.10.0980.00816.68
7.2.00.0990.00916.67
7.1.330.0040.00815.48
7.1.320.0070.00715.30
7.1.310.0110.00415.87
7.1.300.0060.00315.82
7.1.290.0060.00615.65
7.1.280.0000.01315.69
7.1.270.0060.00615.93
7.1.260.0090.00315.69
7.1.250.0220.00515.26
7.1.240.0790.00314.00
7.1.230.0430.01013.94
7.1.220.0440.01013.85
7.1.210.0560.00813.85
7.1.200.0450.00114.51
7.1.190.1330.00213.83
7.1.180.0570.00613.85
7.1.170.0620.00513.83
7.1.160.1850.00715.49
7.1.150.1550.00915.53
7.1.140.1640.01015.34
7.1.130.1450.00915.39
7.1.120.1340.00915.40
7.1.110.1240.00915.19
7.1.100.1410.00715.17
7.1.90.1530.00815.18
7.1.80.1430.01015.21
7.1.70.1410.00914.59
7.1.60.1220.01129.12
7.1.50.1170.01028.87
7.1.40.0850.01228.68
7.1.30.0930.01228.56
7.1.20.0820.01128.79
7.1.10.0750.00614.37
7.1.00.0820.01014.45
7.0.330.0610.00713.49
5.6.380.0070.00714.49

preferences:
60.51 ms | 401 KiB | 5 Q