3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestClass { public $a; public $b; public $c; } $o1 = new TestClass; $o1->a = 'abc'; $o1->b = ['a', 'b', 'c']; $o1->c = 123456; $o2 = new TestClass; $o2->a = 'abc'; $o2->b = ['a', 'b', 'c']; $o2->c = 123456; var_dump([spl_object_hash($o1), spl_object_hash($o2)]); var_dump($o1 == $o2); var_dump($o1 === $o2);

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.3.60.0040.01416.50
8.3.50.0120.00722.00
8.3.40.0110.00418.63
8.3.30.0150.00618.92
8.3.20.0040.00420.32
8.3.10.0040.00421.51
8.3.00.0040.00419.38
8.2.180.0070.01418.41
8.2.170.0090.00622.96
8.2.160.0030.01420.47
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0030.00526.16
8.2.120.0000.00919.25
8.2.110.0080.00321.11
8.2.100.0110.00017.84
8.2.90.0000.00919.22
8.2.80.0040.00417.97
8.2.70.0050.00317.50
8.2.60.0050.00217.93
8.2.50.0030.00518.10
8.2.40.0000.00919.74
8.2.30.0040.00418.09
8.2.20.0040.00417.72
8.2.10.0040.00417.97
8.2.00.0070.00017.67
8.1.280.0190.00325.92
8.1.270.0100.00319.00
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0000.00923.88
8.1.230.0040.00817.52
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0080.00017.35
8.1.180.0000.00818.10
8.1.170.0000.00820.40
8.1.160.0040.00422.09
8.1.150.0000.00818.92
8.1.140.0070.00017.46
8.1.130.0000.00817.81
8.1.120.0040.00417.43
8.1.110.0000.00717.48
8.1.100.0000.00717.45
8.1.90.0070.00017.45
8.1.80.0000.00717.39
8.1.70.0030.00317.48
8.1.60.0000.00917.62
8.1.50.0040.00417.54
8.1.40.0070.00317.44
8.1.30.0030.00517.57
8.1.20.0040.00417.65
8.1.10.0000.00817.46
8.1.00.0050.00317.50
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0040.00418.48
8.0.270.0000.00817.33
8.0.260.0030.00317.25
8.0.250.0030.00317.02
8.0.240.0030.00316.86
8.0.230.0000.00716.86
8.0.220.0030.00316.95
8.0.210.0040.00416.93
8.0.200.0020.00516.95
8.0.190.0070.00016.91
8.0.180.0050.00216.97
8.0.170.0000.00816.86
8.0.160.0030.00316.86
8.0.150.0030.00516.83
8.0.140.0000.00716.77
8.0.130.0000.00713.34
8.0.120.0030.00516.89
8.0.110.0020.00516.79
8.0.100.0000.00916.91
8.0.90.0050.00216.87
8.0.80.0070.01016.90
8.0.70.0000.00816.72
8.0.60.0050.00216.98
8.0.50.0000.00716.77
8.0.30.0160.00917.19
8.0.20.0110.00817.40
8.0.10.0040.00416.96
8.0.00.0070.01616.90
7.4.330.0000.00615.03
7.4.320.0030.00316.45
7.4.300.0060.00016.46
7.4.290.0030.00316.67
7.4.280.0030.00516.52
7.4.270.0000.00716.56
7.4.260.0070.00016.50
7.4.250.0040.00416.42
7.4.240.0020.00616.60
7.4.230.0030.00316.37
7.4.220.0070.01116.54
7.4.210.0060.01016.62
7.4.200.0000.00716.43
7.4.160.0150.00016.61
7.4.150.0120.00617.40
7.4.140.0120.00917.86
7.4.130.0110.01016.49
7.4.120.0110.00616.44
7.4.110.0150.00316.59
7.4.100.0160.00316.38
7.4.90.0090.00916.44
7.4.80.0060.01219.39
7.4.70.0120.00616.79
7.4.60.0060.01516.55
7.4.50.0080.00016.46
7.4.40.0130.00716.39
7.4.30.0080.01116.60
7.4.00.0100.00715.05
7.3.330.0050.00013.21
7.3.320.0070.00913.38
7.3.310.0050.00316.21
7.3.300.0000.00716.43
7.3.290.0040.00416.26
7.3.280.0140.00716.38
7.3.270.0070.01117.40
7.3.260.0130.01016.29
7.3.250.0140.00716.46
7.3.240.0100.00716.32
7.3.230.0120.00616.39
7.3.210.0070.01016.61
7.3.200.0100.01319.39
7.3.190.0050.01116.29
7.3.180.0100.01316.39
7.3.170.0100.00716.37
7.3.160.0070.01416.74
7.2.330.0100.01016.48
7.2.320.0040.01416.63
7.2.310.0110.00516.44
7.2.300.0160.00616.31
7.2.290.0110.00616.61
7.2.60.0090.00316.75
7.2.00.0060.00619.22
7.1.200.0040.01115.83
7.1.100.0070.00718.02
7.1.70.0040.00417.28
7.1.60.0070.01419.50
7.1.50.0100.00316.99
7.1.00.0000.08022.43
7.0.200.0090.00314.65
7.0.140.0000.06321.99
7.0.60.0130.06719.98
7.0.50.0070.04017.92
7.0.40.0170.07720.18
7.0.30.0230.04320.23
7.0.20.0300.08320.07
7.0.10.0300.06320.10
7.0.00.0100.08720.06
5.6.280.0030.07321.02
5.6.210.0070.03720.71
5.6.200.0100.07318.29
5.6.190.0030.08320.34
5.6.180.0130.05720.61
5.6.170.0170.04320.71
5.6.160.0100.06720.59
5.6.150.0030.05018.19
5.6.140.0070.04718.14
5.6.130.0070.08018.14
5.6.120.0100.07321.01
5.6.110.0030.06021.13
5.6.100.0230.07320.88
5.6.90.0030.06720.97
5.6.80.0170.07020.47
5.6.70.0170.02720.34
5.5.350.0300.06320.53
5.5.340.0130.07717.95
5.5.330.0100.07720.31
5.5.320.0000.08720.13
5.5.310.0230.07320.24
5.5.300.0100.07317.95
5.5.290.0070.05318.04
5.5.280.0070.03720.90
5.5.270.0030.08720.86
5.5.260.0100.08020.64
5.5.250.0030.08720.57
5.5.240.0130.07720.24
5.4.450.0630.06319.55
5.4.440.0300.07019.59
5.4.430.0530.05019.55
5.4.420.0900.05319.54
5.4.410.0170.06018.91
5.4.400.0670.07018.82
5.4.390.4900.05018.49
5.4.380.0970.06018.57
5.4.370.0830.06018.56
5.4.360.1270.07318.85
5.4.350.1070.06318.73
5.4.340.0970.06018.71
5.4.320.6070.05718.77
5.4.310.1000.07318.70
5.4.300.4830.06718.80
5.4.290.0970.06718.78
5.4.280.0900.08018.79
5.4.270.0930.08018.45
5.4.260.5900.07718.51
5.4.250.1230.06018.85
5.4.240.1000.05018.55
5.4.230.1270.06018.79
5.4.220.1200.07018.50
5.4.210.1200.08318.77
5.4.200.1370.05716.56
5.4.190.1000.06718.76
5.4.180.1400.06318.82
5.4.170.1370.07018.61
5.4.160.1370.06318.72
5.4.150.1200.07018.54
5.4.140.1170.05716.29
5.4.130.1230.07016.18
5.4.120.1470.05316.46
5.4.110.1300.06716.29
5.4.100.1230.04716.34
5.4.90.1330.04016.32
5.4.80.1070.05316.21
5.4.70.0930.05716.23
5.4.60.1200.05716.14
5.4.50.1200.05016.26
5.4.40.1200.06716.39
5.4.30.1130.06316.20
5.4.20.1130.06016.19
5.4.10.3370.05016.40
5.4.00.1070.05315.70
5.3.290.1130.05714.76
5.3.280.1030.06714.72
5.3.270.1430.06314.60
5.3.260.1130.09014.82
5.3.250.1370.06714.63
5.3.240.1300.07014.70
5.3.230.0970.05714.69
5.3.220.3000.07714.59
5.3.210.1100.08014.56
5.3.200.0970.05314.59
5.3.190.1300.05714.62
5.3.180.1000.04314.61
5.3.170.0830.07014.58
5.3.160.1200.07014.69
5.3.150.1100.06314.74
5.3.140.1270.07714.60
5.3.130.0970.06314.57
5.3.120.1270.06014.58
5.3.110.1400.07714.58
5.3.100.1300.07714.24
5.3.90.1200.06714.12
5.3.80.1100.07014.09
5.3.70.0830.05014.13
5.3.60.1100.05314.07
5.3.50.1200.05314.09
5.3.40.1230.06014.06
5.3.30.0930.05713.88
5.3.20.1430.04713.79
5.3.10.1200.06713.67
5.3.00.1070.05313.68
5.2.170.1070.04711.12
5.2.160.0900.04711.18
5.2.150.1230.05711.25
5.2.140.0970.05711.13
5.2.130.1030.05711.22
5.2.120.0830.06011.20
5.2.110.1270.05311.14
5.2.100.1130.05011.32
5.2.90.1130.05311.15
5.2.80.1170.06011.19
5.2.70.1170.06011.16
5.2.60.1100.06711.10
5.2.50.1030.05011.03
5.2.40.1070.03711.21
5.2.30.0770.05011.07
5.2.20.0870.03311.05
5.2.10.0830.04710.88
5.2.00.0600.03710.73
5.1.60.0970.04010.03
5.1.50.0770.04010.09
5.1.40.0970.03710.00
5.1.30.0970.04010.38
5.1.20.0970.04010.40
5.1.10.0770.05010.05
5.1.00.0770.05010.20
5.0.50.0570.0308.64
5.0.40.0470.0408.51
5.0.30.0500.0578.21
5.0.20.0370.0278.23
5.0.10.0370.0378.20
5.0.00.0570.0478.20
4.4.90.0230.0376.00
4.4.80.0470.0335.96
4.4.70.0330.0235.91
4.4.60.0430.0305.95
4.4.50.0770.0235.93
4.4.40.0430.0475.89
4.4.30.0500.0205.97
4.4.20.0570.0305.94
4.4.10.0570.0305.97
4.4.00.0500.0405.90
4.3.110.0530.0235.86
4.3.100.0470.0275.80
4.3.90.0330.0235.78
4.3.80.0430.0435.78
4.3.70.0670.0235.80
4.3.60.0300.0235.86
4.3.50.0400.0305.79
4.3.40.0400.0435.78
4.3.30.0530.0174.54
4.3.20.0100.0304.52
4.3.10.0270.0274.52
4.3.00.0130.0206.70

preferences:
32.95 ms | 401 KiB | 5 Q