3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ($foo = rand() && 'asdf' != 'qwer') { var_dump($foo); } if (($foo = rand()) && 'asdf' != 'qwer') { var_dump($foo); } if ($foo = (rand() && 'asdf' != 'qwer')) { var_dump($foo); }

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)
7.3.00.0060.00916.65
7.2.130.0070.00416.78
7.2.120.0030.01316.84
7.2.110.0120.00016.95
7.2.100.0070.00716.83
7.2.90.0030.01316.56
7.2.80.0000.01116.77
7.2.70.0100.00017.02
7.2.60.0090.00616.80
7.2.50.0000.01116.57
7.2.40.0040.00816.98
7.2.30.0070.00416.80
7.2.20.0000.01016.75
7.2.10.0030.00716.68
7.2.00.0060.00316.70
7.1.250.0040.00915.87
7.1.240.0000.01015.83
7.1.230.0080.00415.53
7.1.220.0030.00515.73
7.1.210.0030.00715.82
7.1.200.0040.00415.74
7.1.190.0030.00615.50
7.1.180.0000.01215.58
7.1.170.0070.00715.56
7.1.160.0000.01415.79
7.1.150.0070.00715.77
7.1.140.0090.00315.70
7.1.130.0070.00315.70
7.1.120.0070.00315.72
7.1.110.0040.00815.55
7.1.100.0030.00915.82
7.1.90.0000.01015.64
7.1.80.0000.01115.86
7.1.70.0020.00516.44
7.1.60.0050.01017.38
7.1.50.0050.01016.06
7.1.40.0030.00915.66
7.1.30.0040.00715.64
7.1.20.0040.00715.60
7.1.10.0070.00315.64
7.1.00.0030.02518.90
7.0.330.0030.00615.10
7.0.320.0040.00415.34
7.0.310.0060.00315.14
7.0.300.0060.00615.10
7.0.290.0070.00415.06
7.0.280.0040.00715.16
7.0.270.0060.00615.09
7.0.260.0060.00315.26
7.0.250.0040.00715.36
7.0.240.0030.00915.26
7.0.230.0110.00015.27
7.0.220.0080.00314.96
7.0.210.0060.00615.11
7.0.200.0060.00816.08
7.0.190.0040.00715.23
7.0.180.0080.00314.86
7.0.170.0060.00615.36
7.0.160.0070.00415.20
7.0.150.0070.00315.23
7.0.140.0030.04118.49
7.0.130.0000.01015.34
7.0.120.0030.03518.62
7.0.110.0140.03817.55
7.0.100.0030.02817.54
7.0.90.0120.01817.58
7.0.80.0080.02817.72
7.0.70.0050.02817.58
7.0.60.0050.03117.57
7.0.50.0000.04017.61
7.0.40.0030.03116.51
7.0.30.0030.04016.62
7.0.20.0100.03216.61
7.0.10.0000.04216.54
7.0.00.0070.02716.62
5.6.380.0030.00714.03
5.6.370.0070.00314.19
5.6.360.0030.00614.12
5.6.350.0100.00014.28
5.6.340.0090.00313.80
5.6.330.0100.00014.25
5.6.320.0040.00713.84
5.6.310.0040.00714.22
5.6.300.0060.00614.13
5.6.290.0000.01114.15
5.6.280.0040.04017.53
5.6.270.0030.00714.56
5.6.260.0030.03017.55
5.6.250.0040.02917.48
5.6.240.0090.03017.46
5.6.230.0140.03917.30
5.6.220.0050.02717.24
5.6.210.0030.02517.43
5.6.200.0050.04917.25
5.6.190.0050.02317.24
5.6.180.0130.02317.29
5.6.170.0050.02617.37
5.6.160.0030.03517.29
5.6.150.0050.03817.46
5.6.140.0050.02317.48
5.6.130.0050.03217.48
5.6.120.0050.02717.37
5.6.110.0020.02617.33
5.6.100.0030.02617.49
5.6.90.0050.02917.40
5.6.80.0030.02217.16
5.6.70.0070.01917.00
5.6.60.0060.02517.05
5.6.50.0020.02216.95
5.6.40.0030.02316.93
5.6.30.0090.02017.06
5.6.20.0080.02117.07
5.6.10.0030.02517.01
5.6.00.0030.02717.00
5.5.380.0030.03314.25
5.5.370.0020.02714.30
5.5.360.0070.03914.15
5.5.350.0070.03814.24
5.5.340.0060.02614.40
5.5.330.0020.02714.28
5.5.320.0000.04014.51
5.5.310.0100.03514.36
5.5.300.0040.02214.45
5.5.290.0000.02914.41
5.5.280.0020.02614.30
5.5.270.0030.02214.46
5.5.260.0060.02114.42
5.5.250.0030.02314.35
5.5.240.0070.03714.04
5.5.230.0020.02213.98
5.5.220.0000.02514.04
5.5.210.0010.02413.93
5.5.200.0030.01914.00
5.5.190.0060.01814.03
5.5.180.0050.02113.95
5.5.170.0060.00011.02
5.5.160.0040.02414.19
5.5.150.0000.02613.96
5.5.140.0030.01813.88
5.5.130.0050.02214.22
5.5.120.0080.02214.05
5.5.110.0030.02013.87
5.5.100.0070.03314.02
5.5.90.0070.02413.90
5.5.80.0040.03013.92
5.5.70.0070.03714.09
5.5.60.0050.03513.91
5.5.50.0070.04014.04
5.5.40.0030.04113.88
5.5.30.0050.04314.08
5.5.20.0050.03913.93
5.5.10.0110.03214.11
5.5.00.0070.03713.92
5.4.450.0020.02415.19
5.4.440.0030.02115.19
5.4.430.0050.02115.12
5.4.420.0050.02215.06
5.4.410.0020.02015.14
5.4.400.0020.02214.92
5.4.390.0020.02214.94
5.4.380.0020.02014.99
5.4.370.0000.02115.03
5.4.360.0130.01314.95
5.4.350.0030.02014.91
5.4.340.0050.01814.88
5.4.330.0000.00610.52
5.4.320.0020.02214.90
5.4.310.0060.02014.92
5.4.300.0020.02214.85
5.4.290.0050.02315.03
5.4.280.0050.03414.83
5.4.270.0090.02014.93
5.4.260.0100.01514.88
5.4.250.0060.03515.05
5.4.240.0040.04714.90
5.4.230.0080.03714.94
5.4.220.0000.02515.05
5.4.210.0120.03315.00
5.4.200.0050.02215.01
5.4.190.0070.03214.96
5.4.180.0100.02715.04
5.4.170.0020.04014.92
5.4.160.0070.02914.92
5.4.150.0050.02014.91
5.4.140.0000.04213.71
5.4.130.0060.03713.57
5.4.120.0090.01513.56
5.4.110.0070.02813.68
5.4.100.0030.02213.50
5.4.90.0050.03213.58
5.4.80.0080.02213.56
5.4.70.0020.03413.48
5.4.60.0070.03513.52
5.4.50.0050.02813.63
5.4.40.0050.02313.55
5.4.30.0030.03613.57
5.4.20.0040.02413.51
5.4.10.0070.03713.58
5.4.00.0040.02113.18
5.3.290.0030.02212.52
5.3.280.0070.03012.50
5.3.270.0050.04112.52
5.3.260.0090.03212.51
5.3.250.0050.02212.47
5.3.240.0040.02512.58
5.3.230.0000.04012.48
5.3.220.0070.04012.49
5.3.210.0050.03812.49
5.3.200.0030.02412.53
5.3.190.0050.02312.49
5.3.180.0020.02412.49
5.3.170.0020.03712.55
5.3.160.0060.03612.50
5.3.150.0100.03412.44
5.3.140.0050.03012.44
5.3.130.0130.03812.55
5.3.120.0080.04012.44
5.3.110.0010.04512.57
5.3.100.0070.04012.31
5.3.90.0050.02912.29
5.3.80.0030.03912.30
5.3.70.0020.03212.22
5.3.60.0070.04012.14
5.3.50.0080.03012.11
5.3.40.0100.02012.14
5.3.30.0060.03812.12
5.3.20.0100.01712.09
5.3.10.0050.02712.04
5.3.00.0030.02111.98
5.2.170.0110.01811.21
5.2.160.0080.02811.21
5.2.150.0060.03211.21
5.2.140.0060.03211.21
5.2.130.0020.02211.21
5.2.120.0050.01711.21
5.2.110.0110.02611.21
5.2.100.0000.03711.21
5.2.90.0000.02111.21
5.2.80.0080.03111.21
5.2.70.0060.02511.21
5.2.60.0100.02811.21
5.2.50.0030.02511.21
5.2.40.0020.02511.21
5.2.30.0070.01711.21
5.2.20.0030.03211.21
5.2.10.0030.03211.21
5.2.00.0050.01811.21
5.1.60.0000.01911.21
5.1.50.0030.02011.21
5.1.40.0050.02711.21
5.1.30.0020.01811.21
5.1.20.0040.02111.21
5.1.10.0030.01511.21
5.1.00.0080.02511.21
5.0.50.0020.01311.21
5.0.40.0010.01311.21
5.0.30.0030.02511.21
5.0.20.0020.02311.21
5.0.10.0010.02311.21
5.0.00.0000.01511.21
4.4.90.0000.01711.21
4.4.80.0030.01611.21
4.4.70.0050.01011.21
4.4.60.0000.01211.21
4.4.50.0040.01011.21
4.4.40.0000.01611.21
4.4.30.0030.01811.21
4.4.20.0020.01011.21
4.4.10.0020.00911.21
4.4.00.0020.01511.21
4.3.110.0040.01111.21
4.3.100.0000.02211.21
4.3.90.0030.01811.21
4.3.80.0050.01411.21
4.3.70.0000.01611.21
4.3.60.0010.01011.21
4.3.50.0000.01111.21
4.3.40.0000.01411.21
4.3.30.0000.01211.21
4.3.20.0020.01511.21
4.3.10.0000.02011.21
4.3.00.0030.01511.21

preferences:
38.5 ms | 401 KiB | 5 Q