3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestClass { public $a; public $b; public $c; public $d; } $inner1 = new TestClass; $inner1->a = 1000; $inner2 = new TestClass; $inner2->a = 1000; $o1 = new TestClass; $o1->a = 'abc'; $o1->b = ['a', 'b', 'c']; $o1->c = 123456; $o1->d = $inner1; $o2 = new TestClass; $o2->a = 'abc'; $o2->b = ['a', 'b', 'c']; $o2->c = 123456; $o2->d = $inner2; 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.70.0150.00316.75
8.3.60.0110.00416.63
8.3.50.0090.01222.00
8.3.40.0110.00418.70
8.3.30.0070.00718.82
8.3.20.0080.00020.29
8.3.10.0070.00021.91
8.3.00.0040.00419.37
8.2.190.0070.01116.58
8.2.180.0070.01416.38
8.2.170.0070.01022.96
8.2.160.0070.00720.12
8.2.150.0000.00824.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0000.00819.36
8.2.110.0060.00320.38
8.2.100.0080.00319.08
8.2.90.0040.00419.09
8.2.80.0060.00317.97
8.2.70.0050.00317.63
8.2.60.0000.00817.80
8.2.50.0000.00818.07
8.2.40.0040.00418.16
8.2.30.0080.00018.14
8.2.20.0050.00317.57
8.2.10.0040.00417.98
8.2.00.0000.00717.70
8.1.280.0120.00625.92
8.1.270.0040.00418.88
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00622.03
8.1.230.0080.00420.98
8.1.220.0030.00517.74
8.1.210.0030.00718.77
8.1.200.0060.00317.47
8.1.190.0050.00317.23
8.1.180.0000.00818.10
8.1.170.0040.00420.38
8.1.160.0030.00322.07
8.1.150.0000.00719.01
8.1.140.0040.00417.39
8.1.130.0030.00317.84
8.1.120.0000.00717.51
8.1.110.0000.00817.47
8.1.100.0000.00717.32
8.1.90.0070.00017.44
8.1.80.0000.00917.47
8.1.70.0030.00317.46
8.1.60.0030.00517.61
8.1.50.0040.00417.57
8.1.40.0100.00017.43
8.1.30.0050.00317.71
8.1.20.0040.00417.64
8.1.10.0040.00417.63
8.1.00.0030.00617.54
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0080.00018.46
8.0.270.0040.00417.27
8.0.260.0000.00717.27
8.0.250.0030.00317.00
8.0.240.0030.00316.98
8.0.230.0040.00416.98
8.0.220.0000.00816.81
8.0.210.0030.00316.93
8.0.200.0060.00016.88
8.0.190.0030.00316.86
8.0.180.0000.00716.83
8.0.170.0060.00316.91
8.0.160.0000.00716.89
8.0.150.0050.00216.84
8.0.140.0070.00016.84
8.0.130.0040.00413.31
8.0.120.0000.00816.80
8.0.110.0030.00516.83
8.0.100.0000.00716.92
8.0.90.0040.00416.72
8.0.80.0070.01016.95
8.0.70.0080.00016.69
8.0.60.0030.00516.97
8.0.50.0040.00416.94
8.0.30.0090.01217.04
8.0.20.0110.00817.40
8.0.10.0030.00516.93
8.0.00.0110.01316.88
7.4.330.0000.00615.03
7.4.320.0070.00016.55
7.4.300.0060.00016.50
7.4.290.0030.00616.50
7.4.280.0080.00016.51
7.4.270.0000.00716.38
7.4.260.0070.00016.52
7.4.250.0070.00016.57
7.4.240.0020.00516.49
7.4.230.0070.00016.61
7.4.220.0060.01916.56
7.4.210.0080.01016.52
7.4.200.0030.00316.43
7.4.160.0060.00916.48
7.4.150.0180.01417.40
7.4.140.0140.00517.86
7.4.130.0090.01116.47
7.4.120.0110.00916.48
7.4.110.0090.00916.25
7.4.100.0120.00616.18
7.4.90.0060.01216.55
7.4.80.0200.00319.39
7.4.70.0070.01316.66
7.4.60.0070.01016.61
7.4.50.0050.00316.16
7.4.40.0070.01016.25
7.4.30.0070.01416.42
7.4.00.0090.00915.16
7.3.330.0050.00013.42
7.3.320.0050.00913.37
7.3.310.0040.00416.31
7.3.300.0070.00016.24
7.3.290.0030.00316.37
7.3.280.0100.00816.34
7.3.270.0060.01117.40
7.3.260.0170.00016.29
7.3.250.0080.01016.28
7.3.240.0160.00416.36
7.3.230.0060.01416.39
7.3.210.0030.01416.27
7.3.200.0040.01219.39
7.3.190.0110.01116.47
7.3.180.0060.00916.35
7.3.170.0070.01416.27
7.3.160.0110.00616.31
7.2.330.0100.00716.65
7.2.320.0070.01016.52
7.2.310.0100.00716.50
7.2.300.0000.01816.55
7.2.290.0060.01016.67
7.2.60.0030.01016.79
7.2.50.0080.00417.05
7.1.200.0000.01415.90
7.1.70.0070.00416.99
7.1.60.0100.01319.50
7.1.50.0180.00734.76
7.1.00.0070.06722.43
7.0.200.0060.00915.00
7.0.140.0030.07322.22
7.0.60.0070.05020.02
7.0.50.0030.04317.88
7.0.40.0100.08320.13
7.0.30.0330.06020.13
7.0.20.0230.08320.05
7.0.10.0170.05720.06
7.0.00.0070.09020.07
5.6.280.0070.07021.09
5.6.210.0100.03320.75
5.6.200.0100.06718.29
5.6.190.0100.07720.34
5.6.180.0230.04720.39
5.6.170.0130.04320.43
5.6.160.0000.05320.43
5.6.150.0030.08318.29
5.6.140.0070.07718.18
5.6.130.0170.07018.17
5.6.120.0200.07021.00
5.6.110.0100.07020.99
5.6.100.0030.07021.00
5.6.90.0100.08320.96
5.6.80.0100.05320.38
5.6.70.0100.03720.37
5.5.350.0270.07320.38
5.5.340.0100.07017.96
5.5.330.0100.07720.29
5.5.320.0030.04320.44
5.5.310.0300.07020.50
5.5.300.0070.08017.95
5.5.290.0000.08717.98
5.5.280.0030.04020.87
5.5.270.0070.05020.89
5.5.260.0130.06320.86
5.5.250.0100.07720.70
5.5.240.0030.08020.23
5.4.450.0300.05719.40
5.4.440.0770.07319.41
5.4.430.0670.06719.44
5.4.420.1230.06019.16
5.4.410.0130.05018.95
5.4.400.1370.07018.84
5.4.390.1500.07018.52
5.4.380.1600.07718.50
5.4.370.3700.08018.46
5.4.360.1070.05718.84
5.4.350.0730.07718.61
5.4.340.0530.07318.78
5.4.320.2130.06318.74
5.4.310.1370.06718.77
5.4.300.1430.05318.74
5.4.290.1430.05718.48
5.4.280.1400.07318.55
5.4.270.2700.07718.45
5.4.260.1370.07018.60
5.4.250.1370.07318.78
5.4.240.1300.05718.61
5.4.230.1200.06318.61
5.4.220.1230.06718.50
5.4.210.1270.06718.72
5.4.200.2900.06316.62
5.4.190.1000.05718.74
5.4.180.1470.06318.71
5.4.170.1030.06718.54
5.4.160.1270.06318.61
5.4.150.1330.07718.72
5.4.140.1370.07016.29
5.4.130.1400.06316.41
5.4.120.1570.06716.29
5.4.110.1530.05316.29
5.4.100.1130.06716.28
5.4.90.1400.05716.41
5.4.80.1170.06016.30
5.4.70.1200.07016.23
5.4.60.1430.05716.32
5.4.50.1230.05316.40
5.4.40.1230.06716.18
5.4.30.1200.05716.26
5.4.20.1330.05716.29
5.4.10.1400.04716.30
5.4.00.1170.06315.70
5.3.290.1170.05714.79
5.3.280.1170.05314.59
5.3.270.1070.05314.65
5.3.260.0970.07314.62
5.3.250.1200.05314.82
5.3.240.1000.06014.82
5.3.230.1030.06014.72
5.3.220.1300.06014.69
5.3.210.3730.06714.67
5.3.200.0900.05714.68
5.3.190.1130.06314.59
5.3.180.1000.06014.62
5.3.170.1270.06314.60
5.3.160.0700.04714.59
5.3.150.2000.06714.58
5.3.140.0900.05714.77
5.3.130.0930.06314.60
5.3.120.1030.05314.58
5.3.110.1030.07314.65
5.3.100.0730.07314.03
5.3.90.4700.06714.22
5.3.80.1200.06314.13
5.3.70.1400.05714.13
5.3.60.0600.06714.03
5.3.50.0830.06714.00
5.3.40.1330.07014.00
5.3.30.0930.05314.13
5.3.20.1100.06713.73
5.3.10.1130.06313.88
5.3.00.0800.05313.71
5.2.170.0970.05711.27
5.2.160.1130.03311.24
5.2.150.0900.05011.20
5.2.140.1030.04711.24
5.2.130.0870.06011.18
5.2.120.0930.04711.22
5.2.110.1100.05011.30
5.2.100.0900.04711.09
5.2.90.2600.05011.12
5.2.80.1030.05311.14
5.2.70.1170.04311.08
5.2.60.0900.05311.07
5.2.50.0300.05311.06
5.2.40.0800.04311.11
5.2.30.0870.03711.10
5.2.20.0500.04311.08
5.2.10.0870.03311.08
5.2.00.0930.04010.72
5.1.60.0830.03010.18
5.1.50.3100.04710.20
5.1.40.0930.05310.05
5.1.30.0630.05710.51
5.1.20.0770.04310.57
5.1.10.0870.04310.17
5.1.00.0700.03010.20
5.0.50.0400.0308.54
5.0.40.0470.0378.45
5.0.30.0200.0538.25
5.0.20.0400.0278.28
5.0.10.0330.0338.29
5.0.00.0370.0508.14
4.4.90.0470.0205.91
4.4.80.0400.0236.00
4.4.70.1900.0205.95
4.4.60.0370.0235.96
4.4.50.0330.0235.93
4.4.40.0400.0405.88
4.4.30.0430.0205.90
4.4.20.0570.0275.93
4.4.10.0370.0276.07
4.4.00.0400.0576.02
4.3.110.0500.0275.87
4.3.100.0300.0275.81
4.3.90.2600.0275.89
4.3.80.0430.0435.79
4.3.70.0430.0275.83
4.3.60.0370.0235.79
4.3.50.0530.0275.84
4.3.40.0600.0375.75
4.3.30.0200.0304.57
4.3.20.0230.0334.54
4.3.10.0330.0274.57
4.3.00.0130.0206.70

preferences:
50.35 ms | 401 KiB | 5 Q