3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { $a = new stdClass; $a->field = mt_rand(); return $a; } $foo1 = foo(); $foo2 = foo(); var_dump( spl_object_hash($foo1), spl_object_hash($foo2), spl_object_hash(foo()), spl_object_hash(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.10.0120.00016.50
7.3.00.0080.00616.47
7.2.130.0130.00316.39
7.2.120.0040.00816.70
7.2.110.0090.00416.90
7.2.100.0120.00016.59
7.2.90.0030.01016.81
7.2.80.0100.00616.83
7.2.70.0060.00916.63
7.2.60.0100.00716.86
7.2.50.0100.00616.57
7.2.40.0060.00616.70
7.2.30.0030.01016.74
7.2.20.0030.01316.98
7.2.10.0070.00416.54
7.2.00.0060.00917.96
7.1.250.0120.00915.87
7.1.70.0000.01516.87
7.1.60.0170.00719.32
7.1.50.0030.01016.71
7.1.00.0030.07722.27
7.0.200.0030.00616.47
7.0.140.0030.07322.01
7.0.100.0200.05019.98
7.0.90.0230.04719.95
7.0.80.0130.03719.92
7.0.70.0270.06319.95
7.0.60.0030.04720.03
7.0.50.0100.05320.36
7.0.40.0000.05020.09
7.0.30.0070.06320.09
7.0.20.0000.06320.12
7.0.10.0070.05720.17
7.0.00.0100.04320.09
5.6.280.0070.06720.79
5.6.250.0070.05720.60
5.6.240.0030.06720.51
5.6.230.0030.06320.60
5.6.220.0030.05020.71
5.6.210.0070.06020.49
5.6.200.0070.07321.18
5.6.190.0030.06321.14
5.6.180.0170.07721.07
5.6.170.0100.05321.08
5.6.160.0000.05021.09
5.6.150.0000.07021.13
5.6.140.0030.04721.06
5.6.130.0100.04721.04
5.6.120.0030.04721.08
5.6.110.0030.05321.06
5.6.100.0030.05721.04
5.6.90.0070.06321.06
5.6.80.0170.06320.47
5.6.70.0070.07020.50
5.6.60.0130.05720.37
5.6.50.0030.07320.56
5.6.40.0070.07320.32
5.6.30.0030.05320.47
5.6.20.0030.06320.29
5.6.10.0100.04320.41
5.6.00.0030.04020.30
5.5.380.0000.06020.37
5.5.370.0070.05720.54
5.5.360.0070.07320.39
5.5.350.0030.05320.45
5.5.340.0170.05320.78
5.5.330.0070.04020.74
5.5.320.0070.05020.86
5.5.310.0070.08020.84
5.5.300.0100.04320.73
5.5.290.0100.04020.88
5.5.280.0070.04020.81
5.5.270.0130.03720.88
5.5.260.0070.04020.89
5.5.250.0130.07020.54
5.5.240.0070.05020.18
5.5.230.0070.05020.24
5.5.220.0070.05720.17
5.5.210.0030.07320.25
5.5.200.0070.05720.24
5.5.190.0000.04320.25
5.5.180.0030.05320.13
5.5.160.0070.06720.15
5.5.150.0070.06320.27
5.5.140.0000.04720.26
5.5.130.0030.04020.25
5.5.120.0130.07320.23
5.5.110.0100.06320.20
5.5.100.0170.04020.06
5.5.90.0030.06720.04
5.5.80.0130.04720.09
5.5.70.0100.04320.05
5.5.60.0070.06019.93
5.5.50.0030.07020.06
5.5.40.0100.06320.10
5.5.30.0030.06320.06
5.5.20.0170.03720.14
5.5.10.0000.04320.04
5.5.00.0070.04019.97
5.4.450.0030.05019.46
5.4.440.0170.05319.46
5.4.430.0100.04019.20
5.4.420.0000.04719.32
5.4.410.0130.07319.05
5.4.400.0100.05019.05
5.4.390.0000.05319.04
5.4.380.0070.05018.95
5.4.370.0100.06719.05
5.4.360.0000.04719.16
5.4.350.0100.04018.84
5.4.340.0200.04719.04
5.4.320.0030.05718.88
5.4.310.0030.04319.18
5.4.300.0070.04318.92
5.4.290.0030.05019.12
5.4.280.0000.04719.12
5.4.270.0130.05719.10
5.4.260.0030.05719.18
5.4.250.0070.06719.20
5.4.240.0170.03318.94
5.4.230.0070.05019.03
5.4.220.0070.06719.20
5.4.210.0070.04318.90
5.4.200.0030.06319.17
5.4.190.0030.06018.83
5.4.180.0000.04718.86
5.4.170.0030.04019.14
5.4.160.0100.05019.03
5.4.150.0100.07319.19
5.4.140.0100.05316.37
5.4.130.0100.04316.20
5.4.120.0100.03016.28
5.4.110.0030.06016.38
5.4.100.0200.04716.36
5.4.90.0070.04316.36
5.4.80.0030.05316.32
5.4.70.0000.04716.25
5.4.60.0130.03716.37
5.4.50.0200.06716.29
5.4.40.0000.04316.36
5.4.30.0070.05016.33
5.4.20.0100.03716.35
5.4.10.0130.03016.21
5.4.00.0100.05715.85
5.3.290.0100.04314.71
5.3.280.0070.07014.71
5.3.270.0070.05014.53
5.3.260.0070.05014.54
5.3.250.0030.05714.54
5.3.240.0000.04714.67
5.3.230.0100.03314.53
5.3.220.0030.05714.71
5.3.210.0030.08014.63
5.3.200.0000.05014.52
5.3.190.0170.03314.55
5.3.180.0030.06714.59
5.3.170.0130.07314.64
5.3.160.0100.06314.52
5.3.150.0030.07014.68
5.3.140.0030.05714.55
5.3.130.0100.06314.61
5.3.120.0100.04714.62
5.3.110.0070.03714.52
5.3.100.0070.08014.10
5.3.90.0000.05314.04
5.3.80.0030.06713.93
5.3.70.0030.04713.94
5.3.60.0100.06314.07
5.3.50.0000.06313.97
5.3.40.0030.07314.05
5.3.30.0100.04714.03
5.3.20.0030.03713.83
5.3.10.0000.07013.63
5.3.00.0070.05013.69
5.2.170.0030.04011.09
5.2.160.0100.02311.09
5.2.150.0000.06311.06
5.2.140.0030.03711.09
5.2.130.0070.05311.21
5.2.120.0030.04311.13
5.2.110.0070.05011.05
5.2.100.0130.04011.11
5.2.90.0100.05011.09
5.2.80.0000.03311.16
5.2.70.0030.05011.04
5.2.60.0000.04711.16
5.2.50.0070.02711.07
5.2.40.0130.02010.92
5.2.30.0030.03711.10
5.2.20.0070.03711.05
5.2.10.0000.04710.73
5.2.00.0100.04710.73
5.1.60.0030.04710.47
5.1.50.0030.03010.47
5.1.40.0000.03710.47
5.1.30.0000.03710.47
5.1.20.0030.04010.47
5.1.10.0000.03310.47
5.1.00.0100.02710.47
5.0.50.0000.02710.47
5.0.40.0070.03010.47
5.0.30.0000.03710.47
5.0.20.0000.03010.47
5.0.10.0070.03010.47
5.0.00.0000.05010.47
4.4.90.0070.01710.47
4.4.80.0030.01710.47
4.4.70.0030.02310.47
4.4.60.0000.02710.47
4.4.50.0030.03010.47
4.4.40.0030.03010.47
4.4.30.0000.02710.47
4.4.20.0030.01310.47
4.4.10.0000.02310.47
4.4.00.0000.02710.47
4.3.110.0030.02010.47
4.3.100.0030.01710.47
4.3.90.0000.03010.47
4.3.80.0000.03010.47
4.3.70.0000.02010.47
4.3.60.0000.02710.47
4.3.50.0030.02010.47
4.3.40.0000.04310.47
4.3.30.0000.03310.47
4.3.20.0000.03310.47
4.3.10.0000.02310.47
4.3.00.0000.03010.47

preferences:
37.71 ms | 400 KiB | 5 Q