3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myvalue = 'yes'; $anothervalue = 'test'; if ($myvalue == 'yes') { echo 'This is some test content, within which is some more php bits Test ' , ($anothervalue == 'test' ? 'Print this' : 'Print that') , ' And then some more content<br />Test'; } else { echo 'The value didnt match'; }

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.120.0140.00524.24
8.4.110.0060.00522.33
8.4.100.0130.00818.64
8.4.90.0120.00718.86
8.4.80.0060.00220.40
8.4.70.0060.00518.09
8.4.60.0110.01018.94
8.4.50.0100.01018.68
8.4.40.0030.00917.62
8.4.30.0080.00019.35
8.4.20.0100.01020.38
8.4.10.0030.00619.39
8.3.250.0090.00718.91
8.3.240.0100.00717.19
8.3.230.0080.01218.96
8.3.220.0040.00418.95
8.3.210.0090.00916.59
8.3.200.0060.00316.73
8.3.190.0110.00717.11
8.3.180.0140.00517.16
8.3.170.0100.01018.86
8.3.160.0180.00017.01
8.3.150.0060.00317.19
8.3.140.0060.00916.45
8.3.130.0120.00616.44
8.3.120.0000.01218.68
8.3.110.0080.00020.94
8.3.100.0050.00324.06
8.3.90.0000.00816.31
8.3.80.0070.00418.30
8.3.70.0090.00616.63
8.3.60.0160.00018.41
8.3.50.0080.01318.13
8.3.40.0100.01018.89
8.3.30.0110.00418.56
8.3.20.0080.00019.00
8.3.10.0080.00023.54
8.3.00.0080.00020.77
8.2.290.0100.00720.37
8.2.280.0090.01218.11
8.2.270.0090.00616.52
8.2.260.0070.01018.72
8.2.250.0050.00316.80
8.2.240.0060.00319.12
8.2.230.0060.00322.58
8.2.220.0110.00737.54
8.2.210.0020.00526.77
8.2.200.0070.00318.41
8.2.190.0130.01316.63
8.2.180.0110.00416.63
8.2.170.0120.00322.96
8.2.160.0070.00722.13
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0050.00321.05
8.2.120.0080.00026.35
8.2.110.0000.00921.07
8.2.100.0040.00817.87
8.2.90.0060.00319.34
8.2.80.0060.00317.97
8.2.70.0040.00417.79
8.2.60.0040.00418.03
8.2.50.0030.00518.10
8.2.40.0030.00621.09
8.2.30.0040.00419.16
8.2.20.0040.00418.07
8.2.10.0030.00618.10
8.2.00.0060.00319.45
8.1.330.0050.00321.63
8.1.320.0120.00715.84
8.1.310.0070.01018.46
8.1.300.0040.00717.63
8.1.290.0030.00618.88
8.1.280.0000.01425.92
8.1.270.0030.00622.00
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0050.00524.02
8.1.230.0000.01120.97
8.1.220.0040.00417.79
8.1.210.0040.00418.84
8.1.200.0000.00817.23
8.1.190.0050.00317.13
8.1.180.0120.00018.10
8.1.170.0080.00018.62
8.1.160.0070.00018.90
8.1.150.0020.00518.88
8.1.140.0070.00022.00
8.1.130.0070.00020.07
8.1.120.0030.00317.52
8.1.110.0040.00417.46
8.1.100.0030.00317.46
8.1.90.0030.00517.33
8.1.80.0040.00417.47
8.1.70.0040.00417.47
8.1.60.0060.00317.63
8.1.50.0080.00017.55
8.1.40.0040.00417.35
8.1.30.0060.00317.58
8.1.20.0040.00417.64
8.1.10.0000.00817.56
8.1.00.0000.00817.44
8.0.300.0040.00420.03
8.0.290.0000.00716.63
8.0.280.0030.00318.46
8.0.270.0030.00316.73
8.0.260.0030.00318.50
8.0.250.0060.00316.82
8.0.240.0000.00816.97
8.0.230.0030.00316.85
8.0.220.0070.00016.80
8.0.210.0040.00416.79
8.0.200.0070.00016.82
8.0.190.0040.00416.85
8.0.180.0000.00816.84
8.0.170.0040.00416.71
8.0.160.0000.00716.71
8.0.150.0050.00316.85
8.0.140.0030.00516.84
8.0.130.0020.00213.30
8.0.120.0070.00016.85
8.0.110.0040.00416.80
8.0.100.0040.00416.70
8.0.90.0040.00416.88
8.0.80.0030.01116.80
8.0.70.0040.00416.81
8.0.60.0000.00816.78
8.0.50.0000.00716.75
8.0.30.0110.01417.11
8.0.20.0080.01117.40
8.0.10.0040.00416.97
8.0.00.0080.01316.79
7.4.330.0020.00215.55
7.4.320.0030.00316.43
7.4.300.0040.00416.51
7.4.290.0000.00716.41
7.4.280.0040.00416.45
7.4.270.0030.00616.52
7.4.260.0000.00816.52
7.4.250.0040.00416.47
7.4.240.0070.00016.44
7.4.230.0040.00416.40
7.4.220.0050.00316.70
7.4.210.0100.00716.54
7.4.200.0070.00016.50
7.4.160.0100.00916.45
7.4.140.0100.00817.86
7.4.130.0170.00016.56
7.4.120.0110.00716.52
7.4.110.0130.01316.59
7.4.100.0080.01416.44
7.4.90.0150.00316.51
7.4.80.0100.01419.39
7.4.70.0060.00916.54
7.4.60.0120.00616.54
7.4.50.0080.00816.23
7.4.40.0110.01116.62
7.4.00.0000.01715.00
7.3.330.0000.00513.03
7.3.320.0030.00312.95
7.3.310.0000.00716.23
7.3.300.0030.00316.10
7.3.290.0000.00616.18
7.3.280.0080.00616.13
7.3.260.0110.00916.33
7.3.240.0090.00916.32
7.3.230.0030.01316.48
7.3.210.0100.01016.29
7.3.200.0030.01416.27
7.3.190.0100.00616.36
7.3.180.0060.01016.29
7.3.170.0060.00916.49
7.3.160.0040.01116.41
7.2.330.0060.01116.74
7.2.320.0090.00916.59
7.2.310.0180.00016.41
7.2.300.0040.01216.30
7.2.290.0130.00316.62
7.2.120.0590.00714.76
7.2.110.0760.00914.63
7.2.100.0580.00714.69
7.2.90.1000.01014.59
7.2.80.0540.00914.76
7.2.70.0470.00814.79
7.2.60.0760.01315.01
7.2.50.0520.01014.81
7.2.40.0590.01014.72
7.2.30.1170.00315.23
7.2.20.0710.01014.96
7.2.10.1160.00715.21
7.2.00.1010.01015.01
7.1.240.0590.00713.70
7.1.230.0620.00613.75
7.1.220.0640.00313.98
7.1.210.0640.00313.61
7.1.200.0600.00713.84
7.1.190.0600.01113.78
7.1.180.0730.00313.78
7.1.170.0720.00313.95
7.1.160.0690.00713.61
7.1.150.1140.00313.78
7.1.140.1470.00313.68
7.1.130.1740.01313.89
7.1.120.1680.01013.90
7.1.110.1060.01013.86
7.1.100.1110.00713.91
7.1.90.0840.01413.98
7.1.80.0970.00013.83
7.1.70.0850.00313.65
7.1.60.1190.00313.72
7.1.50.1470.01213.97
7.1.40.1130.00313.46
7.1.30.1160.00713.77
7.1.20.1150.01013.82
7.1.10.0820.00413.66
7.1.00.1300.00313.57
5.6.380.0170.00614.37

preferences:
17.16 ms | 403 KiB | 5 Q