3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public $var = '3.1415962654'; } $baseMemory = memory_get_usage(); for ( $i = 0; $i <= 100000; $i++ ) { $a = new Foo; $a->self = $a; if ( $i % 500 === 0 ) { echo sprintf( '%8d: ', $i ), memory_get_usage() - $baseMemory, "\n"; } } ?>

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.2.00.0030.03623.57
7.1.70.0140.03421.19
7.1.60.0040.04221.77
7.1.50.0130.06321.40
7.1.00.0070.11026.45
7.0.200.0000.04520.71
7.0.140.0070.10726.10
7.0.60.0170.11024.38
7.0.50.0170.11022.18
7.0.40.0270.11320.33
7.0.30.0270.07020.07
7.0.20.0270.08320.18
7.0.10.0170.10720.16
7.0.00.0070.06320.17
5.6.280.0000.15326.44
5.6.210.0230.13025.95
5.6.200.0200.11723.38
5.6.190.0030.09725.68
5.6.180.0400.11725.64
5.6.170.0270.12325.72
5.6.160.0170.10325.66
5.6.150.0170.13023.43
5.6.140.0000.13323.43
5.6.130.0100.15723.43
5.6.120.0100.15726.32
5.6.110.0030.13726.27
5.6.100.0130.08726.51
5.6.90.0130.10026.30
5.6.80.0230.14025.67
5.5.350.0270.12725.80
5.5.340.0130.07723.36
5.5.330.0100.14025.42
5.5.320.0330.08025.59
5.5.310.0270.10325.57
5.5.300.0100.10723.39
5.5.290.0000.12723.45
5.5.280.0130.08726.30
5.5.270.0170.13326.09
5.5.260.0030.09026.29
5.5.250.0130.09026.11
5.5.240.0030.14325.43
5.4.450.0970.11724.95
5.4.440.0300.12024.83
5.4.430.0670.15024.88
5.4.420.0230.13324.63
5.4.410.0170.12724.14
5.4.400.1670.20024.17
5.4.390.1100.18024.24
5.4.380.0130.14023.98
5.4.370.0030.11023.94
5.4.360.0130.11023.86
5.4.350.0140.09717.43
5.4.340.0140.11917.44
5.4.320.0140.09517.91
5.4.310.0110.10317.90
5.4.300.0110.09617.91
5.4.290.0130.09817.92
5.4.280.0140.09517.82
5.4.270.0150.09117.81
5.4.260.0090.09417.81
5.4.250.0120.09317.81
5.4.240.0120.10117.82
5.4.230.0130.09217.80
5.4.220.0130.09617.81
5.4.210.0120.09217.81
5.4.200.0090.11117.80
5.4.190.0130.08817.80
5.4.180.0130.10317.80
5.4.170.0090.09417.81
5.4.160.0100.08917.80
5.4.150.0130.08917.93
5.4.140.0130.10817.49
5.4.130.0110.09517.47
5.4.120.0070.09817.43
5.4.110.0120.09617.43
5.4.100.0070.10917.43
5.4.90.0140.10017.43
5.4.80.0090.09717.43
5.4.70.0160.08817.43
5.4.60.0140.08817.43
5.4.50.0100.10017.41
5.4.40.0140.10217.40
5.4.30.0110.10117.39
5.4.20.0140.09017.40
5.4.10.0150.08717.39
5.4.00.0070.09716.90
5.3.290.0130.09717.97
5.3.280.0070.10317.90
5.3.270.0080.10217.91
5.3.260.0100.10517.91
5.3.250.0110.09317.91
5.3.240.0060.11217.91
5.3.230.0110.10717.91
5.3.220.0130.10417.87
5.3.210.0120.10717.87
5.3.200.0150.09217.87
5.3.190.0120.10517.88
5.3.180.0130.10117.87
5.3.170.0150.09317.87
5.3.160.0080.10217.87
5.3.150.0080.10817.87
5.3.140.0100.09917.86
5.3.130.0080.11117.86
5.3.120.0060.11717.86
5.3.110.0140.10517.85
5.3.100.0080.10117.34
5.3.90.0130.09717.32
5.3.80.0120.10217.32
5.3.70.0080.09817.32
5.3.60.0160.09817.30
5.3.50.0110.10517.25
5.3.40.0090.11617.25
5.3.30.0080.10617.21
5.3.20.0110.10517.14
5.3.10.0090.10216.95
5.3.00.0070.11116.93
5.2.170.0200.09955.71
5.2.160.0230.08255.71
5.2.150.0300.08855.71
5.2.140.0230.08855.71
5.2.130.0260.08455.67
5.2.120.0220.08655.67
5.2.110.0240.09855.67
5.2.100.0290.08255.67
5.2.90.0250.08655.67
5.2.80.0240.09455.66
5.2.70.0250.08856.10
5.2.60.0210.09155.62
5.2.50.0240.11055.43
5.2.40.0290.10255.41
5.2.30.0230.11155.38
5.2.20.0210.10955.38
5.2.10.0270.08255.28
5.2.00.0060.0268.80
5.1.60.0040.0238.09
5.1.50.0040.0248.08
5.1.40.0020.0268.07
5.1.30.0040.0268.41
5.1.20.0050.0268.43
5.1.10.0020.0288.16
5.1.00.0020.0278.16
5.0.50.0060.0186.64
5.0.40.0040.0196.49
5.0.30.0010.0336.31
5.0.20.0010.0226.28
5.0.10.0070.0166.25
5.0.00.0030.0316.24
4.4.90.0010.0164.78
4.4.80.0020.0164.75
4.4.70.0030.0154.75
4.4.60.0020.0164.76
4.4.50.0020.0164.77
4.4.40.0050.0274.71
4.4.30.0020.0184.76
4.4.20.0050.0134.84
4.4.10.0040.0144.85
4.4.00.0080.0194.76
4.3.110.0010.0174.67
4.3.100.0010.0164.66
4.3.90.0050.0124.64
4.3.80.0050.0214.58
4.3.70.0020.0154.63
4.3.60.0000.0164.62
4.3.50.0020.0154.63
4.3.40.0040.0224.54
4.3.30.0010.0173.30
4.3.20.0030.0143.28
4.3.10.0030.0143.23
4.3.00.0100.0237.11

preferences:
34.46 ms | 401 KiB | 5 Q