3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo '2 + 2 = ' . (2 + 2 === 4 ? 4 : 2 + 2 === 5 ? 5 : 'dunno'); // should output "4", right? RIGHT?

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.20.0030.01717.82
8.4.10.0080.00317.55
8.3.150.0070.00717.09
8.3.140.0000.01916.45
8.3.130.0040.00418.39
8.3.120.0030.00618.87
8.3.110.0040.00416.90
8.3.100.0060.00316.69
8.3.90.0040.01126.77
8.3.80.0030.00618.55
8.3.70.0140.00316.75
8.3.60.0000.01416.50
8.3.50.0210.00621.86
8.3.40.0090.00618.63
8.3.30.0130.00818.97
8.3.20.0040.00420.21
8.3.10.0090.00023.46
8.3.00.0080.00019.00
8.2.270.0070.00718.34
8.2.260.0060.00920.59
8.2.250.0090.00018.23
8.2.240.0090.00018.50
8.2.230.0060.00320.94
8.2.220.0060.00324.06
8.2.210.0040.01126.77
8.2.200.0060.00318.04
8.2.190.0130.01616.58
8.2.180.0070.01018.16
8.2.170.0120.00622.96
8.2.160.0080.00818.83
8.2.150.0090.00024.18
8.2.140.0000.00824.66
8.2.130.0160.00326.16
8.2.120.0040.00421.09
8.2.110.0070.00321.06
8.2.100.0080.00417.72
8.2.90.0040.00419.10
8.2.80.0000.00717.97
8.2.70.0040.00417.25
8.2.60.0090.00017.80
8.2.50.0000.00818.07
8.2.40.0040.00418.00
8.2.30.0000.00717.95
8.2.20.0000.00817.56
8.2.10.0020.00517.80
8.2.00.0000.01017.59
8.1.310.0070.01116.35
8.1.300.0120.00319.63
8.1.290.0030.00618.88
8.1.280.0120.00625.92
8.1.270.0030.00622.02
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0000.00823.97
8.1.230.0080.00419.06
8.1.220.0030.00617.74
8.1.210.0030.00518.77
8.1.200.0000.00917.22
8.1.190.0040.00417.38
8.1.180.0060.00318.10
8.1.170.0030.00718.65
8.1.160.0070.00021.82
8.1.150.0000.00718.50
8.1.140.0000.00717.32
8.1.130.0000.00717.74
8.1.120.0100.00017.40
8.1.110.0040.00417.33
8.1.100.0050.00317.31
8.1.90.0000.00717.22
8.1.80.0030.00317.22
8.1.70.0000.00817.23
8.1.60.0040.00417.35
8.1.50.0030.00517.26
8.1.40.0040.00417.32
8.1.30.0030.00617.47
8.1.20.0030.00617.38
8.1.10.0070.00017.24
8.1.00.0040.00417.19
8.0.300.0040.00418.93
8.0.290.0020.00516.92
8.0.280.0030.00318.21
8.0.270.0030.00317.01
8.0.260.0030.00318.30
8.0.250.0050.00216.82
8.0.240.0030.00316.86
8.0.230.0030.00316.90
8.0.220.0000.00716.79
8.0.210.0000.00716.72
8.0.200.0000.00616.90
8.0.190.0040.00416.87
8.0.180.0040.00416.82
8.0.170.0040.00416.73
8.0.160.0040.00416.69
8.0.150.0000.00716.72
8.0.140.0070.00016.70
8.0.130.0050.00013.25
8.0.120.0000.00816.63
8.0.110.0000.00716.79
8.0.100.0000.00716.64
8.0.90.0040.00416.66
8.0.80.0120.00316.73
8.0.70.0000.00716.71
8.0.60.0000.00716.64
8.0.50.0040.00416.83
8.0.30.0170.00516.96
8.0.20.0170.00517.40
8.0.10.0070.00016.98
8.0.00.0080.01016.70
7.4.330.0000.00515.00
7.4.320.0060.00016.46
7.4.300.0030.00316.46
7.4.290.0110.00016.27
7.4.280.0090.00016.25
7.4.270.0030.00316.55
7.4.260.0000.00513.14
7.4.250.0080.00016.28
7.4.240.0050.00216.33
7.4.230.0000.00616.25
7.4.220.0100.01316.38
7.4.210.0120.00316.51
7.4.200.0070.00016.21
7.4.190.0000.00716.25
7.4.160.0100.00616.37
7.4.150.0090.00917.40
7.4.140.0140.00817.86
7.4.130.0120.00616.49
7.4.120.0080.01216.44
7.4.110.0120.01016.36
7.4.100.0070.01116.48
7.4.90.0070.01016.36
7.4.80.0030.01319.39
7.4.70.0090.00616.35
7.4.60.0060.01016.53
7.4.50.0000.00816.32
7.4.40.0100.00722.77
7.4.30.0140.00316.37
7.4.10.0030.01414.74
7.4.00.0050.01115.08
7.3.330.0040.00413.01
7.3.320.0000.00512.99
7.3.310.0000.00716.26
7.3.300.0030.00316.05
7.3.290.0060.00916.28
7.3.280.0130.00616.22
7.3.270.0100.01017.40
7.3.260.0170.00616.46
7.3.250.0110.00916.20
7.3.240.0120.00916.25
7.3.230.0110.00716.39
7.3.210.0110.00716.42
7.3.200.0100.01119.39
7.3.190.0090.00916.52
7.3.180.0090.00616.54
7.3.170.0090.00916.43
7.3.160.0090.00616.47
7.3.130.0100.00714.76
7.3.120.0100.00714.86
7.3.110.0060.01014.78
7.3.100.0040.00814.70
7.3.90.0060.01014.47
7.3.80.0000.01114.71
7.3.70.0000.01614.87
7.3.60.0030.01414.86
7.3.50.0140.00414.82
7.3.40.0070.01114.83
7.3.30.0130.00014.80
7.3.20.0060.00916.65
7.3.10.0030.01016.49
7.3.00.0000.00916.39
7.2.330.0160.00316.71
7.2.320.0120.00816.61
7.2.310.0070.01416.46
7.2.300.0100.00616.73
7.2.290.0060.00916.57
7.2.260.0000.01514.82
7.2.250.0040.01515.03
7.2.240.0080.00414.95
7.2.230.0090.00614.90
7.2.220.0090.00614.89
7.2.210.0000.00914.94
7.2.200.0060.00314.59
7.2.190.0100.00714.98
7.2.180.0110.00714.67
7.2.170.0090.00314.93
7.2.160.0040.01214.58
7.2.150.0070.01116.66
7.2.140.0030.01216.54
7.2.130.0060.00316.84
7.2.120.0100.00716.63
7.2.110.0070.00316.91
7.2.100.0090.00316.57
7.2.90.0060.01016.86
7.2.80.0040.01116.74
7.2.70.0000.01316.51
7.2.60.0060.00916.69
7.2.50.0050.00916.76
7.2.40.0070.00716.70
7.2.30.0100.00716.54
7.2.20.0040.00816.66
7.2.10.0130.00316.80
7.2.00.0000.01416.85
7.1.330.0030.01015.75
7.1.320.0080.00615.83
7.1.310.0080.00415.75
7.1.300.0060.01015.71
7.1.290.0000.01115.47
7.1.280.0000.01415.54
7.1.270.0000.01415.56
7.1.260.0040.00715.45
7.1.250.0030.01115.42
7.1.240.0090.00615.48
7.1.230.0030.00815.82
7.1.220.0080.00615.69
7.1.210.0060.00315.60
7.1.200.0050.00615.64
7.1.190.0070.00715.43
7.1.180.0100.00015.71
7.1.170.0070.00715.86
7.1.160.0130.00015.82
7.1.150.0070.00715.46
7.1.140.0030.01015.55
7.1.130.0030.01015.79
7.1.120.0070.00715.59
7.1.110.0090.00315.62
7.1.100.0000.01615.79
7.1.90.0060.00915.68
7.1.80.0080.00015.46
7.1.70.0030.00716.21
7.1.60.0060.01017.54
7.1.50.0020.00816.15
7.1.40.0040.00715.38
7.1.30.0030.00715.34
7.1.20.0030.00915.52
7.1.10.0030.01015.62
7.1.00.0050.04119.01
7.0.330.0070.00715.35
7.0.320.0040.01214.98
7.0.310.0000.00815.33
7.0.300.0000.01215.29
7.0.290.0030.00715.46
7.0.280.0100.00315.07
7.0.270.0000.01215.51
7.0.260.0090.00315.36
7.0.250.0100.00715.47
7.0.240.0100.00315.55
7.0.230.0040.00815.36
7.0.220.0040.00415.35
7.0.210.0030.01315.43
7.0.200.0180.00315.01
7.0.190.0000.00815.51
7.0.180.0120.00015.42
7.0.170.0030.01015.18
7.0.160.0030.00615.39
7.0.150.0070.00715.43
7.0.140.0050.03518.68
7.0.130.0090.00615.35
7.0.120.0060.00615.40
7.0.110.0030.01015.45
7.0.100.0030.01015.13
7.0.90.0040.01115.43
7.0.80.0080.00315.41
7.0.70.0070.01015.29
7.0.60.0050.04217.59
7.0.50.0050.02516.60
7.0.40.0110.03816.57
7.0.30.0350.02616.91
7.0.20.0150.02216.80
7.0.10.0060.02616.80
7.0.00.0110.02716.90
5.6.400.0030.00714.08
5.6.390.0090.00614.43
5.6.380.0000.01514.18
5.6.370.0050.00514.62
5.6.360.0030.01314.56
5.6.350.0070.00314.55
5.6.340.0030.01114.61
5.6.330.0040.01114.51
5.6.320.0040.01114.48
5.6.310.0110.00414.49
5.6.300.0060.01014.10
5.6.290.0140.00014.66
5.6.280.0060.03717.66
5.6.270.0080.00414.30
5.6.260.0070.00714.33
5.6.250.0000.01214.57
5.6.240.0030.01014.10
5.6.230.0070.00714.58
5.6.220.0040.01214.29
5.6.210.0080.03717.30
5.6.200.0070.04116.29
5.6.190.0100.02317.51
5.6.180.0150.03317.44
5.6.170.0130.03017.41
5.6.160.0070.04617.32
5.6.150.0080.04216.34
5.6.140.0030.04716.21
5.6.130.0050.02516.41
5.6.120.0030.03117.68
5.6.110.0220.03417.74
5.6.100.0020.04417.62
5.6.90.0080.02217.67
5.6.80.0080.03817.15
5.6.70.1200.02117.23
5.6.60.0000.00814.37
5.6.50.0040.00814.09
5.6.40.0070.00714.42
5.6.30.0000.01114.23
5.6.20.0070.00714.16
5.6.10.0110.00314.41
5.6.00.0070.00714.22
5.5.380.0070.00314.18
5.5.370.0110.00414.34
5.5.360.0000.01013.98
5.5.350.0110.04017.35
5.5.340.0050.03216.16
5.5.330.0030.02717.20
5.5.320.0060.04317.21
5.5.310.0080.02617.24
5.5.300.0110.03316.17
5.5.290.0030.02516.14
5.5.280.0110.04017.75
5.5.270.0070.03817.55
5.5.260.0070.04717.48
5.5.250.0050.04117.42
5.5.240.0120.02517.08
5.5.230.0130.00014.21
5.5.220.0030.00814.17
5.5.210.0060.00614.13
5.5.200.0070.00314.09
5.5.190.0110.00314.09
5.5.180.0000.01114.32
5.5.170.0070.00314.29
5.5.160.0030.00914.20
5.5.150.0060.00314.18
5.5.140.0030.01014.06
5.5.130.0070.01013.85
5.5.120.0040.00713.95
5.5.110.0030.00713.93
5.5.100.0030.01014.01
5.5.90.0030.01014.04
5.5.80.0090.00314.21
5.5.70.0060.00614.27
5.5.60.0040.00814.11
5.5.50.0100.00314.18
5.5.40.0050.00514.13
5.5.30.0080.00313.93
5.5.20.0030.00913.92
5.5.10.0060.00614.22
5.5.00.0090.00313.84
5.4.450.0060.04115.07
5.4.440.0060.04315.10
5.4.430.0070.03515.24
5.4.420.0040.04414.99
5.4.410.0070.02715.22
5.4.400.0050.03114.81
5.4.390.0050.04314.80
5.4.380.0050.04215.00
5.4.370.0080.01815.01
5.4.360.0080.03114.97
5.4.350.0080.03314.83
5.4.340.0050.04014.91
5.4.330.0080.00010.87
5.4.320.0020.02314.94
5.4.310.0060.04015.14
5.4.300.0080.03914.99
5.4.290.0030.02614.89
5.4.280.0090.03714.91
5.4.270.0030.02915.10
5.4.260.0060.02114.83
5.4.250.0080.01814.96
5.4.240.0050.02614.89
5.4.230.0050.04215.01
5.4.220.0050.03514.76
5.4.210.0050.04114.91
5.4.200.0020.03015.00
5.4.190.0060.02614.77
5.4.180.0100.02314.83
5.4.170.0050.03414.90
5.4.160.0080.03514.94
5.4.150.0070.04014.88
5.4.140.0080.02313.54
5.4.130.0030.03013.52
5.4.120.0070.03713.58
5.4.110.0040.02513.49
5.4.100.0050.02713.61
5.4.90.0020.03513.55
5.4.80.0060.03013.49
5.4.70.0000.04213.65
5.4.60.0080.01713.58
5.4.50.0050.03513.63
5.4.40.0030.04013.48
5.4.30.0050.02013.51
5.4.20.0030.03613.52
5.4.10.0040.02213.52
5.4.00.0030.04013.38
5.3.290.0050.03512.66
5.3.280.0050.04312.62
5.3.270.0090.03212.64
5.3.260.0100.02512.61
5.3.250.0050.04012.68
5.3.240.0060.03812.64
5.3.230.0080.03712.63
5.3.220.0030.04112.59
5.3.210.0060.03312.64
5.3.200.0080.02912.62
5.3.190.0020.04412.64
5.3.180.0030.04112.69
5.3.170.0020.03512.62
5.3.160.0000.02412.61
5.3.150.0050.03512.61
5.3.140.0030.02612.60
5.3.130.0070.04012.55
5.3.120.0080.02312.60
5.3.110.0050.02212.62
5.3.100.0030.04112.29
5.3.90.0100.02512.42
5.3.80.0080.03212.29
5.3.70.0010.03812.28
5.3.60.0030.02512.34
5.3.50.0090.03112.30
5.3.40.0080.03312.30
5.3.30.0020.04412.29
5.3.20.0100.03212.22
5.3.10.0070.03312.16
5.3.00.0030.03512.16
5.2.170.0000.05711.04
5.2.160.0100.06011.30
5.2.150.0070.05311.07
5.2.140.0000.06011.07
5.2.130.0070.06011.03
5.2.120.0070.06311.03
5.2.110.0070.05311.03
5.2.100.0130.02711.08
5.2.90.0070.04011.25
5.2.80.0100.03311.17
5.2.70.0030.05711.05
5.2.60.0070.06311.01
5.2.50.0070.05710.84
5.2.40.0000.06711.07
5.2.30.0070.05310.90
5.2.20.0000.06010.86
5.2.10.0030.06010.88
5.2.00.0070.03710.85
5.1.60.0030.05710.03
5.1.50.0100.05010.00
5.1.40.0030.03710.11
5.1.30.0100.05010.21
5.1.20.0130.05310.39
5.1.10.0000.04310.10
5.1.00.0070.0579.97
5.0.50.0000.0508.60
5.0.40.0000.0508.35
5.0.30.0070.0438.26
5.0.20.0100.0378.26
5.0.10.0100.0378.30
5.0.00.0000.0638.26
4.4.90.0000.0338.26
4.4.80.0000.0308.26
4.4.70.0130.0238.26
4.4.60.0030.0408.26
4.4.50.0000.0378.26
4.4.40.0000.0478.26
4.4.30.0030.0378.26
4.4.20.0030.0338.26
4.4.10.0000.0378.26
4.4.00.0030.0378.26
4.3.110.0030.0278.26
4.3.100.0070.0308.26
4.3.90.0030.0338.26
4.3.80.0000.0408.26
4.3.70.0000.0208.26
4.3.60.0030.0208.26
4.3.50.0030.0338.26
4.3.40.0000.0438.26
4.3.30.0000.0338.26
4.3.20.0000.0308.26
4.3.10.0000.0378.26
4.3.00.0000.0378.26

preferences:
61.84 ms | 403 KiB | 5 Q