3v4l.org

run code in 300+ PHP versions simultaneously
<?php final class Money { public function __construct(int $amount, $currency) { $this->amount = $amount; $this->currency = $currency; } public function equals(Money $otherMoney) { return $this->amount === $otherMoney->amount && $this->currency === $otherMoney->currency; } } $moneyOne = new Money(100, 'EUR'); var_dump($moneyOne->equals(new Money(100, 'ISK')));

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.0120.00618.55
8.3.50.0120.00316.25
8.3.40.0070.00718.75
8.3.30.0060.00918.88
8.3.20.0040.00420.34
8.3.10.0040.00421.95
8.3.00.0070.00020.96
8.2.180.0150.00018.41
8.2.170.0120.00322.96
8.2.160.0100.00720.53
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00019.20
8.2.120.0040.00426.35
8.2.110.0060.00322.25
8.2.100.0090.00318.03
8.2.90.0040.00419.23
8.2.80.0040.00418.03
8.2.70.0040.00417.50
8.2.60.0080.00018.04
8.2.50.0080.00018.07
8.2.40.0040.00422.31
8.2.30.0040.00420.71
8.2.20.0000.00817.69
8.2.10.0060.00317.98
8.2.00.0000.00717.96
8.1.280.0040.01125.92
8.1.270.0040.00420.43
8.1.260.0080.00028.09
8.1.250.0000.00728.09
8.1.240.0050.00524.00
8.1.230.0100.00019.00
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0060.00317.38
8.1.190.0030.00517.22
8.1.180.0040.00418.10
8.1.170.0030.00618.65
8.1.160.0040.00420.71
8.1.150.0050.00218.77
8.1.140.0000.00819.46
8.1.130.0030.00617.71
8.1.120.0070.00017.43
8.1.110.0040.00417.37
8.1.100.0030.00517.48
8.1.90.0050.00317.52
8.1.80.0040.00417.41
8.1.70.0040.00417.43
8.1.60.0030.00517.50
8.1.50.0060.00317.53
8.1.40.0050.00317.54
8.1.30.0030.00617.65
8.1.20.0000.00717.55
8.1.10.0060.00317.46
8.1.00.0000.00717.41
8.0.300.0040.00418.77
8.0.290.0090.00016.75
8.0.280.0080.00018.56
8.0.270.0000.00717.26
8.0.260.0000.00717.26
8.0.250.0030.00317.03
8.0.240.0070.00016.99
8.0.230.0030.00517.00
8.0.220.0040.00416.99
8.0.210.0080.00016.94
8.0.200.0070.00017.02
8.0.190.0000.00917.06
8.0.180.0040.00417.01
8.0.170.0000.00816.98
8.0.160.0000.00716.86
8.0.150.0040.00416.93
8.0.140.0000.00716.78
8.0.130.0030.00313.35
8.0.120.0070.00016.92
8.0.110.0070.00016.89
8.0.100.0000.00817.02
8.0.90.0040.00417.02
8.0.80.0120.00316.94
8.0.70.0000.00716.78
8.0.60.0030.00516.78
8.0.50.0030.00517.02
8.0.30.0060.01217.24
8.0.20.0100.00917.40
8.0.10.0070.00016.94
8.0.00.0080.01016.81
7.4.330.0000.00516.67
7.4.320.0000.00616.58
7.4.300.0080.00016.40
7.4.290.0090.00016.49
7.4.280.0050.00216.51
7.4.270.0030.00316.52
7.4.260.0030.00316.48
7.4.250.0040.00416.56
7.4.240.0020.00516.59
7.4.230.0030.00316.63
7.4.220.0070.01516.58
7.4.210.0110.00616.50
7.4.200.0040.00416.35
7.4.160.0090.00916.53
7.4.150.0060.01217.40
7.4.140.0110.01117.86
7.4.130.0090.00916.49
7.4.120.0090.00816.49
7.4.110.0100.00716.61
7.4.100.0150.00616.36
7.4.90.0090.00816.41
7.4.80.0100.00719.39
7.4.70.0060.00916.46
7.4.60.0070.01016.36
7.4.50.0060.01016.23
7.4.40.0030.01316.40
7.4.30.0110.00716.50
7.4.10.0070.01416.36
7.4.00.0070.01015.78
7.3.330.0060.00013.17
7.3.320.0000.00713.24
7.3.310.0040.00216.21
7.3.300.0070.00016.19
7.3.290.0090.00716.31
7.3.280.0090.00816.32
7.3.270.0100.01017.40
7.3.260.0070.01016.36
7.3.250.0120.00616.35
7.3.240.0110.00916.40
7.3.230.0120.00616.39
7.3.210.0040.01416.19
7.3.200.0060.01216.47
7.3.190.0040.01616.41
7.3.180.0090.00616.46
7.3.170.0070.01416.36
7.3.160.0110.00516.38
7.3.130.0070.01316.25
7.3.120.0120.00515.65
7.3.110.0050.00915.65
7.3.100.0080.00615.42
7.3.90.0030.00815.50
7.3.80.0100.00515.43
7.3.70.0090.00615.58
7.3.60.0070.00915.38
7.3.50.0090.00315.51
7.3.40.0060.00515.48
7.3.30.0090.00515.56
7.3.20.0050.00717.24
7.3.10.0100.00217.42
7.3.00.0080.00617.27
7.2.330.0100.00716.48
7.2.320.0100.01316.73
7.2.310.0130.00316.59
7.2.300.0110.00616.77
7.2.290.0060.01016.49
7.2.260.0120.00316.40
7.2.250.0070.01416.61
7.2.240.0080.00915.85
7.2.230.0020.01215.86
7.2.220.0080.00315.61
7.2.210.0080.00615.79
7.2.200.0050.01115.86
7.2.190.0050.01215.85
7.2.180.0100.00515.89
7.2.170.0020.01215.74
7.2.160.0070.00915.78
7.2.150.0020.00917.84
7.2.140.0060.00717.58
7.2.130.0040.01017.78
7.2.120.0090.00517.60
7.2.110.0020.01217.71
7.2.100.0020.01017.70
7.2.90.0020.01017.54
7.2.80.0080.00617.58
7.2.70.0070.00317.72
7.2.60.0070.00817.30
7.2.50.0080.00817.63
7.2.40.0090.00317.54
7.2.30.0080.00617.47
7.2.20.0070.00717.83
7.2.10.0070.00817.74
7.2.00.0070.00818.24
7.1.330.0070.00716.61
7.1.320.0030.00816.61
7.1.310.0020.00816.39
7.1.300.0070.00516.51
7.1.290.0050.00916.51
7.1.280.0060.00716.57
7.1.270.0050.00916.63
7.1.260.0040.01316.52
7.1.250.0050.00616.52
7.1.240.0110.00417.39
7.1.230.0070.00717.36
7.1.220.0040.00817.46
7.1.210.0030.01017.38
7.1.200.0080.00816.62
7.1.190.0150.00017.30
7.1.180.0040.00817.54
7.1.170.0060.00917.45
7.1.160.0070.00317.46
7.1.150.0050.00517.32
7.1.140.0090.00917.26
7.1.130.0070.00717.47
7.1.120.0070.01017.36
7.1.110.0090.00317.53
7.1.100.0080.00817.63
7.1.90.0060.00917.32
7.1.80.0040.01517.43
7.1.70.0010.01217.12
7.1.60.0080.01318.48
7.1.50.0020.01117.26
7.1.40.0060.00917.55
7.1.30.0070.00317.41
7.1.20.0030.01017.36
7.1.10.0050.00917.54
7.1.00.0050.04019.92
7.0.330.0030.00716.90
7.0.320.0030.01017.02
7.0.310.0090.00617.03
7.0.300.0060.00916.93
7.0.290.0030.00716.98
7.0.280.0100.00317.19
7.0.270.0030.01017.25
7.0.260.0040.01216.89
7.0.250.0060.00817.12
7.0.240.0030.01617.15
7.0.230.0060.01017.14
7.0.220.0000.01417.13
7.0.210.0070.00717.20
7.0.200.0030.00916.91
7.0.190.0030.01417.12
7.0.180.0060.00916.96
7.0.170.0030.01317.07
7.0.160.0030.01017.02
7.0.150.0130.00317.05
7.0.140.0030.01217.11
7.0.130.0060.00616.87
7.0.120.0040.01117.05
7.0.110.0070.00716.99
7.0.100.0060.00617.16
7.0.90.0090.00617.05
7.0.80.0070.00717.10
7.0.70.0000.01416.95
7.0.60.0060.03018.57
7.0.50.0000.04317.41
7.0.40.0060.02617.54
7.0.30.0170.03717.63
7.0.20.0120.02717.67
7.0.10.0030.02917.58
7.0.00.0090.04217.58
5.6.400.0060.00915.96
5.6.390.0160.00015.81
5.6.380.0060.00615.57
5.6.370.0030.01315.77
5.6.360.0060.00615.88
5.6.350.0090.00615.91
5.6.340.0100.00715.81
5.6.330.0000.01615.83
5.6.320.0070.01116.11
5.6.310.0080.00815.66
5.6.300.0040.01115.66
5.6.290.0100.00715.61
5.6.280.0020.02918.34
5.6.270.0060.00315.90
5.6.260.0090.00015.51
5.6.250.0040.01115.91
5.6.240.0070.00715.58
5.6.230.0040.01115.54
5.6.220.0100.00315.98
5.6.210.0070.02718.28
5.6.200.0030.03416.97
5.6.190.0070.04418.11
5.6.180.0150.04618.20
5.6.170.0120.03818.18
5.6.160.0100.04218.06
5.6.150.0040.04216.96
5.6.140.0050.03016.90
5.6.130.0080.03016.99
5.6.120.0070.02818.39
5.6.110.0050.04018.31
5.6.100.0070.04318.46
5.6.90.0150.03818.40
5.6.80.0070.02018.01
5.6.70.0060.00915.58
5.6.60.0070.00715.68
5.6.50.0030.01315.85
5.6.40.0080.00315.56
5.6.30.0060.00815.63
5.6.20.0090.00915.77
5.6.10.0040.01515.62
5.6.00.0080.00415.67
5.5.380.0090.00615.60
5.5.370.0000.01515.61
5.5.360.0070.01015.54
5.5.350.2180.01818.04
5.5.340.0040.02616.72
5.5.330.0020.03217.88
5.5.320.0310.02517.98
5.5.310.0220.03718.06
5.5.300.0050.03416.94
5.5.290.0050.03116.93
5.5.280.0070.04518.14
5.5.270.0080.03018.34
5.5.260.0150.04018.29
5.5.250.0090.04318.04
5.5.240.2100.02417.94
5.5.230.0040.01115.62
5.5.220.0100.00615.57
5.5.210.0070.00315.64
5.5.200.0080.00815.49
5.5.190.0030.01015.68
5.5.180.0030.01315.67
5.5.170.0100.00315.65
5.5.160.0070.00415.67
5.5.150.0040.01115.78
5.5.140.0000.01515.35
5.5.130.0000.01215.47
5.5.120.0070.00715.78
5.5.110.0060.00915.41
5.5.100.0030.01015.68
5.5.90.0000.00915.69
5.5.80.0110.00415.61
5.5.70.0060.00615.43
5.5.60.0120.00315.71
5.5.50.0030.00615.41
5.5.40.0030.01015.43
5.5.30.0060.00615.55
5.5.20.0000.01315.60
5.5.10.0100.00315.72
5.5.00.0040.00715.53

preferences:
51.69 ms | 400 KiB | 5 Q