3v4l.org

run code in 300+ PHP versions simultaneously
<?php const FOO = 1; $a = 1; switch (true) { case $a === FOO: echo '$a === FOO'; break; case $a == FOO: echo '$a == 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.4.10.0060.00317.45
8.3.140.0180.00017.18
8.3.130.0050.00318.27
8.3.120.0030.01318.96
8.3.110.0030.01320.94
8.3.100.0090.00016.54
8.3.90.0000.00926.77
8.3.80.0030.00616.38
8.3.70.0110.01116.58
8.3.60.0180.00418.43
8.3.50.0050.00817.89
8.3.40.0110.00318.71
8.3.30.0110.00418.42
8.3.20.0030.00518.75
8.3.10.0040.00421.04
8.3.00.0080.00023.48
8.2.250.0080.00018.36
8.2.240.0040.01116.86
8.2.230.0050.00322.58
8.2.220.0030.00637.54
8.2.210.0050.00326.77
8.2.200.0000.00816.38
8.2.190.0100.01016.58
8.2.180.0180.00025.92
8.2.170.0040.01122.96
8.2.160.0000.01521.96
8.2.150.0060.00324.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0040.00419.73
8.2.110.0040.01222.27
8.2.100.0090.00317.78
8.2.90.0000.00822.20
8.2.80.0040.00419.13
8.2.70.0030.00617.80
8.2.60.0000.00817.80
8.2.50.0050.00518.10
8.2.40.0000.00819.33
8.2.30.0000.00819.49
8.2.20.0000.00718.04
8.2.10.0070.00017.95
8.2.00.0040.00419.36
8.1.300.0070.00317.49
8.1.290.0090.00018.88
8.1.280.0110.00425.92
8.1.270.0050.00324.05
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0040.00722.35
8.1.230.0070.00421.04
8.1.220.0000.00817.76
8.1.210.0000.00818.82
8.1.200.0040.00817.35
8.1.190.0000.00817.22
8.1.180.0080.00018.10
8.1.170.0000.00818.55
8.1.160.0050.00318.88
8.1.150.0040.00418.88
8.1.140.0000.00717.58
8.1.130.0000.00819.10
8.1.120.0000.00817.45
8.1.110.0050.00317.50
8.1.100.0080.00017.33
8.1.90.0000.00817.49
8.1.80.0000.00717.34
8.1.70.0070.00017.43
8.1.60.0030.00517.46
8.1.50.0030.00517.52
8.1.40.0070.00817.57
8.1.30.0030.00617.59
8.1.20.0040.00417.68
8.1.10.0040.00417.56
8.1.00.0030.00517.41
8.0.300.0060.00319.98
8.0.290.0080.00016.75
8.0.280.0030.00318.50
8.0.270.0040.00417.25
8.0.260.0000.00719.04
8.0.250.0000.00616.86
8.0.240.0030.00517.00
8.0.230.0070.00016.91
8.0.220.0000.00716.86
8.0.210.0000.00716.82
8.0.200.0030.00316.83
8.0.190.0060.00316.80
8.0.180.0040.00416.81
8.0.170.0000.00916.79
8.0.160.0040.00416.92
8.0.150.0000.00716.78
8.0.140.0030.00416.81
8.0.130.0050.00013.32
8.0.120.0040.00416.80
8.0.110.0000.00716.79
8.0.100.0040.00416.81
8.0.90.0000.00916.94
8.0.80.0130.00616.89
8.0.70.0040.00416.91
8.0.60.0000.00816.75
8.0.50.0040.00416.94
8.0.30.0100.01016.69
8.0.20.0160.00317.40
8.0.10.0040.00416.89
8.0.00.0120.00716.92
7.4.330.0000.00515.55
7.4.320.0000.00616.44
7.4.300.0000.00716.63
7.4.290.0000.00716.50
7.4.280.0000.00816.45
7.4.270.0030.00316.50
7.4.260.0070.00016.61
7.4.250.0070.00016.59
7.4.240.0000.00716.53
7.4.230.0030.00316.59
7.4.220.0030.00616.61
7.4.210.0100.00816.53
7.4.200.0000.00716.38
7.4.160.0050.00916.50
7.4.140.0090.00817.86
7.4.130.0070.01116.55
7.4.120.0080.01016.53
7.4.110.0100.00716.39
7.4.100.0100.01316.42
7.4.90.0100.00716.31
7.4.80.0070.01419.39
7.4.70.0070.01516.47
7.4.60.0130.00616.43
7.4.50.0130.00316.34
7.4.40.0080.01216.50
7.4.10.0090.00915.09
7.4.00.0070.01215.17
7.3.330.0000.00513.05
7.3.320.0050.00013.13
7.3.310.0030.00316.11
7.3.300.0000.00716.20
7.3.290.0040.00416.16
7.3.280.0050.01116.21
7.3.260.0080.00916.44
7.3.240.0070.01116.26
7.3.230.0090.01216.25
7.3.210.0170.00016.43
7.3.200.0060.01016.36
7.3.190.0130.00316.53
7.3.180.0070.01016.33
7.3.170.0070.01016.46
7.3.160.0150.00416.46
7.3.130.0030.01515.02
7.3.120.0050.01214.93
7.3.110.0030.01414.74
7.3.100.0080.00814.75
7.3.90.0030.01214.76
7.3.80.0020.00915.13
7.3.70.0090.00714.71
7.3.60.0050.00814.72
7.3.50.0000.01214.75
7.3.40.0030.00914.58
7.3.30.0070.00714.64
7.3.20.0070.00716.55
7.3.10.0070.00516.71
7.3.00.0080.00716.71
7.2.330.0140.00416.65
7.2.320.0090.00916.77
7.2.310.0100.00716.53
7.2.300.0140.01016.68
7.2.290.0100.00716.44
7.2.260.0090.01015.18
7.2.250.0060.01214.82
7.2.240.0050.01215.10
7.2.230.0020.01415.23
7.2.220.0030.01014.93
7.2.210.0040.00714.94
7.2.200.0090.00714.92
7.2.190.0050.01014.99
7.2.180.0090.00614.87
7.2.170.0030.00814.71
7.2.160.0060.00814.99
7.2.150.0050.01316.82
7.2.140.0040.01016.90
7.2.130.0050.00916.84
7.2.120.0030.01017.00
7.2.110.0030.01116.84
7.2.100.0070.01016.75
7.2.90.0050.01016.93
7.2.80.0070.01016.97
7.2.70.0050.01016.80
7.2.60.0530.00816.24
7.2.50.0580.01216.20
7.2.40.0670.00716.29
7.2.30.0100.00516.50
7.2.20.0500.00916.32
7.2.10.0490.01016.40
7.2.00.0210.00916.34
7.1.330.0070.00815.83
7.1.320.0090.00615.72
7.1.310.0070.00815.92
7.1.300.0100.00515.79
7.1.290.0050.00815.72
7.1.280.0070.00415.67
7.1.270.0080.00315.77
7.1.260.0040.01015.66
7.1.250.0040.00915.74
7.1.240.0090.00915.75
7.1.230.0060.01215.77
7.1.220.0110.00415.74
7.1.210.0030.01015.66
7.1.200.0090.00615.71
7.1.190.0100.00615.64
7.1.180.0070.00415.64
7.1.170.0830.00614.86
7.1.160.0610.01316.16
7.1.150.0070.01216.25
7.1.140.0180.01416.39
7.1.130.0420.00816.40
7.1.120.0660.00716.38
7.1.110.0890.00616.08
7.1.100.0730.01215.96
7.1.90.1010.00915.79
7.1.80.0860.00615.99
7.1.70.1110.01315.43
7.1.60.1140.01824.34
7.1.50.0380.01024.46
7.1.40.1250.00824.29
7.1.30.0190.01124.13
7.1.20.1210.01224.26
7.1.10.0880.00915.25
7.1.00.0870.01015.35
7.0.330.0030.01015.55
7.0.320.0100.00615.10
7.0.310.0100.00715.33
7.0.300.0080.00615.41
7.0.290.0060.00615.12
7.0.280.0100.00315.33
7.0.270.0040.01115.45
7.0.260.0070.00715.26
7.0.250.0070.01015.37
7.0.240.0070.00715.37
7.0.230.0090.00615.29
7.0.220.0040.00415.41
7.0.210.0040.01215.31
7.0.200.0060.01015.25
7.0.190.0030.00615.07
7.0.180.0030.01315.14
7.0.170.0070.00715.36
7.0.160.0060.00915.48
7.0.150.0030.01315.37
7.0.140.0090.00315.50
7.0.130.0000.01315.42
7.0.120.0030.01215.33
7.0.110.0100.00315.35
7.0.100.0090.00315.38
7.0.90.0070.00715.43
7.0.80.0030.00915.17
7.0.70.0060.00615.43
7.0.60.0070.00715.23
7.0.50.0070.00715.46
7.0.40.0060.00313.21
7.0.30.0030.00913.33
7.0.20.0000.00913.15
7.0.10.0080.00313.32
7.0.00.0040.01113.49
5.6.400.0060.00614.50
5.6.390.0040.01014.40
5.6.380.0000.01614.68
5.6.370.0040.01114.40
5.6.360.0040.01113.98
5.6.350.0040.00414.27
5.6.340.0030.01014.33
5.6.330.0030.01014.54
5.6.320.0000.01114.43
5.6.310.0070.01014.23
5.6.300.0090.00914.18
5.6.290.0000.00914.41
5.6.280.0120.00314.46
5.6.270.0070.00714.40
5.6.260.0030.01014.29
5.6.250.0100.00614.11
5.6.240.0000.01014.46
5.6.230.0030.01014.64
5.6.220.0040.01114.45
5.6.210.0090.00614.51
5.6.200.0070.00714.43
5.6.190.0060.00314.50
5.6.180.0070.00714.49
5.6.170.0070.00714.33
5.6.160.0090.00314.56
5.6.150.0000.00914.18
5.6.140.0030.01014.54
5.6.130.0030.01014.16
5.6.120.0060.00314.54
5.6.110.0070.00714.21
5.6.100.0060.00314.12
5.6.90.0030.01014.31
5.6.80.0060.00913.95
5.6.70.0040.00714.35
5.6.60.0040.00814.29
5.6.50.0100.00714.10
5.6.40.0100.00714.08
5.6.30.0070.00714.06
5.6.20.0030.00714.31
5.6.10.0030.01214.33
5.6.00.0040.01114.18

preferences:
20 ms | 403 KiB | 5 Q