3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time=microtime(1); for ($i=0;$i<100000;$i++) new stdClass; echo microtime(1)-$time,': new stdClass'."\n"; $time=microtime(1); for ($i=0;$i<100000;$i++) (object)[]; echo microtime(1)-$time,': (object)[]'."\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.4.00.0130.02314.61
7.3.120.0100.02914.78
7.3.110.0050.03214.73
7.3.100.0050.02114.92
7.3.90.0050.02414.66
7.3.80.0060.02514.85
7.3.70.0100.01914.86
7.3.60.0080.01814.76
7.3.50.0080.02314.77
7.3.40.0070.02314.72
7.3.30.0020.02714.83
7.3.20.0100.02016.65
7.3.10.0080.02116.61
7.3.00.0050.02616.61
7.2.250.0080.03014.99
7.2.240.0100.02515.10
7.2.230.0070.02215.04
7.2.220.0050.02215.10
7.2.210.0070.02015.05
7.2.200.0080.02115.02
7.2.190.0050.02214.93
7.2.180.0070.02114.98
7.2.170.0090.02115.13
7.2.00.0090.01919.19
7.1.330.0030.03515.67
7.1.320.0070.03215.66
7.1.310.0030.03315.90
7.1.300.0030.03015.82
7.1.290.0020.03615.74
7.1.280.0050.03015.69
7.1.270.0080.03215.76
7.1.260.0080.03115.78
7.1.70.0040.01417.35
7.1.60.0130.03719.40
7.1.50.0170.03017.01
7.1.00.0000.04722.57
7.0.200.0000.02616.77
7.0.140.0070.09021.97
7.0.60.0130.09319.92
7.0.50.0100.09317.90
7.0.40.0100.07720.27
7.0.30.0300.08020.12
7.0.20.0270.05720.09
7.0.10.0170.05320.10
7.0.00.0100.09720.16
5.6.280.0030.10721.02
5.6.210.0130.10720.72
5.6.200.0100.10318.19
5.6.190.0030.12020.41
5.6.180.0230.07020.32
5.6.170.0200.10720.41
5.6.160.0030.11020.54
5.6.150.0030.05718.21
5.6.140.0170.09718.16
5.6.130.0070.11018.18
5.6.120.0100.10720.99
5.6.110.0030.07020.98
5.6.100.0170.10320.98
5.6.90.0100.09021.03
5.6.80.0230.09020.37
5.6.70.0370.09320.34
5.5.350.0370.10020.43
5.5.340.0070.07717.96
5.5.330.0100.11020.46
5.5.320.0230.07320.16
5.5.310.0200.07320.32
5.5.300.0070.07317.90
5.5.290.0070.05718.02
5.5.280.0100.05320.64
5.5.270.0070.07020.72
5.5.260.0070.10320.97
5.5.250.0030.05720.70
5.5.240.0100.04720.12
5.4.450.0470.05019.39
5.4.440.0270.08319.38
5.4.430.0200.07719.53
5.4.420.0230.10319.55
5.4.410.0370.07719.08
5.4.400.0170.05719.25
5.4.390.0230.08719.21
5.4.380.0270.07019.16
5.4.370.0200.09018.91
5.4.360.0170.08718.78
5.4.350.0230.09319.23
5.4.340.0170.06019.09
5.4.320.0300.06318.90
5.4.310.0230.04718.92
5.4.300.0200.08319.13
5.4.290.0300.07019.12
5.4.280.0270.07319.24
5.4.270.0370.07319.16
5.4.260.0230.06719.24
5.4.250.0200.06719.03
5.4.240.0270.09319.07
5.4.230.0330.08719.07
5.4.220.0300.09719.04
5.4.210.0230.05319.11
5.4.200.0270.10018.88
5.4.190.0230.05719.04
5.4.180.0300.06319.12
5.4.170.0300.07019.05
5.4.160.0230.07318.75
5.4.150.0300.08319.13
5.4.140.0300.09016.55
5.4.130.0270.06316.25
5.4.120.0230.07716.32
5.4.110.0270.08716.23
5.4.100.0330.07316.07
5.4.90.0200.05316.41
5.4.80.0330.08716.41
5.4.70.0230.05316.07
5.4.60.0330.06316.47
5.4.50.0200.06016.41
5.4.40.0300.06016.38
5.4.30.0230.05016.18
5.4.20.0200.05316.35
5.4.10.0370.08316.33
5.4.00.0200.05715.73
5.3.290.0270.03314.50
5.3.280.0230.03714.55
5.3.270.0330.06014.60
5.3.260.0300.04014.55
5.3.250.0300.05014.67
5.3.240.0270.06014.54
5.3.230.0300.07714.48
5.3.220.0330.06314.55
5.3.210.0400.06714.62
5.3.200.0270.07314.59
5.3.190.0330.03314.52
5.3.180.0170.05014.66
5.3.170.0230.04714.66
5.3.160.0230.07014.52
5.3.150.0230.03314.52
5.3.140.0270.05014.58
5.3.130.0370.06014.41
5.3.120.0270.05014.50
5.3.110.0200.04014.37
5.3.100.0170.04014.00
5.3.90.0170.03713.86
5.3.80.0230.07014.11
5.3.70.0170.04013.87
5.3.60.0300.05713.97
5.3.50.0270.03313.79
5.3.40.0170.03713.96
5.3.30.0170.03713.69
5.3.20.0230.03013.54
5.3.10.0230.03013.66
5.3.00.0270.06013.49
5.2.170.0130.03312.91
5.2.160.0130.03312.91
5.2.150.0170.06012.91
5.2.140.0170.03312.91
5.2.130.0270.04312.91
5.2.120.0130.03312.91
5.2.110.0130.03012.91
5.2.100.0170.02712.91
5.2.90.0170.02712.91
5.2.80.0270.05012.91
5.2.70.0130.03012.91
5.2.60.0130.03012.91
5.2.50.0130.04712.91
5.2.40.0170.02712.91
5.2.30.0170.03012.91
5.2.20.0130.03012.91
5.2.10.0130.03712.91
5.2.00.0170.06012.91
5.1.60.0200.03012.91
5.1.50.0170.03712.91
5.1.40.0200.03012.91
5.1.30.0130.03012.91
5.1.20.0130.05712.91
5.1.10.0130.02712.91
5.1.00.0200.04012.91
5.0.50.0170.03012.91
5.0.40.0000.03312.91
5.0.30.0070.03312.91
5.0.20.0070.02312.91
5.0.10.0130.02712.91
5.0.00.0130.03012.91
4.4.90.0100.01712.91
4.4.80.0070.01712.91
4.4.70.0170.01712.91
4.4.60.0130.01012.91
4.4.50.0070.01712.91
4.4.40.0070.03712.91
4.4.30.0070.01712.91
4.4.20.0100.01312.91
4.4.10.0100.02312.91
4.4.00.0100.02312.91
4.3.110.0030.02012.91
4.3.100.0170.02012.91
4.3.90.0130.01312.91
4.3.80.0070.02312.91
4.3.70.0070.01712.91
4.3.60.0030.01712.91
4.3.50.0070.01712.91
4.3.40.0030.02712.91
4.3.30.0000.01712.91
4.3.20.0070.02312.91
4.3.10.0000.02012.91
4.3.00.0030.03312.91

preferences:
36.72 ms | 400 KiB | 5 Q