3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Money { private $amount; public function __construct($amount) { $this->amount = $amount; } public function equals(Money $otherMoney) { return $this->amount === $otherMoney->amount; } } $a = new Money(1); $b = new Money(1); echo $a->amount === 1; echo $a->amount == 1;

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.0220.00016.75
8.3.50.0120.00916.48
8.3.40.0060.00918.89
8.3.30.0110.00318.96
8.3.20.0040.00420.29
8.3.10.0000.00823.52
8.3.00.0000.00723.53
8.2.180.0120.00318.41
8.2.170.0110.00418.94
8.2.160.0100.01022.96
8.2.150.0030.00524.18
8.2.140.0050.00324.66
8.2.130.0040.00419.31
8.2.120.0060.00326.35
8.2.110.0100.01321.03
8.2.100.0000.01117.91
8.2.90.0080.00019.14
8.2.80.0000.00817.97
8.2.70.0190.00217.25
8.2.60.0000.00817.80
8.2.50.0050.00318.07
8.2.40.0050.00322.33
8.2.30.0000.00720.62
8.2.20.0030.00517.70
8.2.10.0040.00418.01
8.2.00.0000.00817.88
8.1.280.0100.01025.92
8.1.270.0000.00820.38
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0040.00421.43
8.1.230.0060.00617.42
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0040.00418.52
8.1.160.0000.00720.72
8.1.150.0060.00318.77
8.1.140.0040.00419.44
8.1.130.0000.00717.64
8.1.120.0050.00317.38
8.1.110.0040.00417.38
8.1.100.0000.00817.42
8.1.90.0030.00417.40
8.1.80.0050.00317.29
8.1.70.0000.00717.26
8.1.60.0000.01017.62
8.1.50.0000.00917.63
8.1.40.0040.00417.54
8.1.30.0030.00617.63
8.1.20.0000.00717.66
8.1.10.0040.00417.56
8.1.00.0050.00217.50
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0030.00318.39
8.0.270.0000.00717.21
8.0.260.0080.00017.12
8.0.250.0030.00317.02
8.0.240.0040.00416.95
8.0.230.0000.00716.96
8.0.220.0030.00316.91
8.0.210.0050.00316.93
8.0.200.0030.00617.03
8.0.190.0030.00716.91
8.0.180.0050.00316.96
8.0.170.0000.00816.95
8.0.160.0000.00816.98
8.0.150.0070.00016.82
8.0.140.0040.00416.81
8.0.130.0030.00313.30
8.0.120.0000.00716.84
8.0.110.0050.00316.97
8.0.100.0000.00716.86
8.0.90.0000.00816.80
8.0.80.0110.01116.97
8.0.70.0000.00816.82
8.0.60.0070.00016.71
8.0.50.0080.00016.74
8.0.30.0090.00917.14
8.0.20.0120.00717.40
8.0.10.0020.00517.07
8.0.00.0130.00516.72
7.4.330.0000.00516.69
7.4.320.0000.00716.41
7.4.300.0070.00016.53
7.4.290.0070.00016.59
7.4.280.0060.00316.53
7.4.270.0030.00316.60
7.4.260.0030.00316.54
7.4.250.0000.00716.57
7.4.240.0030.00516.49
7.4.230.0050.00216.41
7.4.220.0160.00616.46
7.4.210.0000.01416.68
7.4.200.0030.00316.62
7.4.160.0030.01716.56
7.4.150.0140.00417.40
7.4.140.0100.01117.86
7.4.130.0070.00916.51
7.4.120.0070.00916.46
7.4.110.0090.00916.65
7.4.100.0120.00616.52
7.4.90.0170.00016.52
7.4.80.0160.00019.39
7.4.70.0120.00616.62
7.4.60.0070.01016.54
7.4.50.0070.00716.54
7.4.40.0110.01116.64
7.4.30.0110.00616.48
7.4.00.0050.01315.03
7.3.330.0050.00013.33
7.3.320.0040.00413.37
7.3.310.0060.00316.15
7.3.300.0000.00716.35
7.3.290.0070.00816.40
7.3.280.0080.00916.33
7.3.270.0060.01017.40
7.3.260.0110.01116.50
7.3.250.0110.01016.44
7.3.240.0110.00716.59
7.3.230.0070.01016.39
7.3.210.0110.00516.41
7.3.200.0060.01116.38
7.3.190.0120.00616.38
7.3.180.0130.00316.37
7.3.170.0080.00816.49
7.3.160.0090.00616.30
7.3.120.0110.00714.54
7.3.110.0060.01314.86
7.3.100.0040.01014.70
7.3.90.0060.00615.00
7.3.80.0060.01214.88
7.3.70.0100.00314.66
7.3.60.0000.01614.49
7.3.50.0070.01014.76
7.3.40.0000.01114.66
7.3.30.0060.01014.92
7.3.20.0090.00616.40
7.3.10.0070.01116.59
7.3.00.0000.01016.40
7.2.330.0070.01016.68
7.2.320.0060.01216.41
7.2.310.0090.00616.49
7.2.300.0060.01216.75
7.2.290.0070.01316.72
7.2.250.0030.01415.20
7.2.240.0040.01115.23
7.2.230.0060.01014.91
7.2.220.0090.00615.00
7.2.210.0130.00015.18
7.2.200.0060.00914.82
7.2.190.0040.01215.07
7.2.180.0070.00715.00
7.2.170.0090.00314.96
7.2.60.0000.01316.83
7.2.00.0120.00619.42
7.1.330.0040.01115.70
7.1.320.0030.01015.58
7.1.310.0070.00715.65
7.1.300.0120.00615.68
7.1.290.0110.00415.59
7.1.280.0030.01415.57
7.1.270.0070.01015.60
7.1.260.0030.00615.63
7.1.200.0000.01315.59
7.1.100.0040.00817.94
7.1.70.0040.00417.06
7.1.60.0090.01519.52
7.1.50.0070.01416.86
7.1.00.0070.07322.35
7.0.200.0190.00316.80
7.0.60.0070.03720.09
7.0.50.0200.06717.86
7.0.40.0100.04719.96
7.0.30.0230.07320.06
7.0.20.0200.04720.30
7.0.10.0130.07720.06
7.0.00.0130.05020.12
5.6.280.0000.03721.03
5.6.210.0100.07720.68
5.6.200.0100.07718.13
5.6.190.0130.03720.34
5.6.180.0170.05020.55
5.6.170.0230.03720.54
5.6.160.0200.03320.51
5.6.150.0000.05018.29
5.6.140.0000.06018.11
5.6.130.0100.07018.27
5.6.120.0030.07721.02
5.6.110.0100.08020.89
5.6.100.0030.04321.14
5.6.90.0070.04720.97
5.6.80.0230.06720.41
5.5.350.4030.03020.38
5.5.340.0200.03018.09
5.5.330.0070.08320.43
5.5.320.0330.07720.38
5.5.310.0170.04320.34
5.5.300.0100.05317.95
5.5.290.0100.08018.02
5.5.280.0070.08320.88
5.5.270.0130.07320.80
5.5.260.0070.07720.65
5.5.250.0070.08020.57
5.5.240.0270.07020.27

preferences:
53.13 ms | 400 KiB | 5 Q