3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __toString() { return '42'; } public function asInt(): int { return $this; } } var_dump((new Foo)->asInt());

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.0090.00616.38
8.3.50.0070.00718.05
8.3.40.0150.00418.77
8.3.30.0070.00718.85
8.3.20.0110.00319.91
8.3.10.0060.00920.25
8.3.00.0070.00021.65
8.2.180.0030.01718.54
8.2.170.0090.00622.96
8.2.160.0200.00020.38
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0060.00320.35
8.2.120.0060.00326.35
8.2.110.0030.00621.12
8.2.100.0000.01117.91
8.2.90.0060.00318.09
8.2.80.0050.00317.97
8.2.70.0030.00517.61
8.2.60.0080.00017.93
8.2.50.0040.00418.10
8.2.40.0000.00720.61
8.2.30.0030.00519.16
8.2.20.0080.00018.05
8.2.10.0050.00317.96
8.2.00.0050.00218.33
8.1.280.0100.01025.92
8.1.270.0000.00722.14
8.1.260.0020.00526.35
8.1.250.0070.00028.09
8.1.240.0090.00022.06
8.1.230.0040.00720.98
8.1.220.0030.00517.75
8.1.210.0040.00420.19
8.1.200.0090.00017.13
8.1.190.0040.00417.13
8.1.180.0050.00218.10
8.1.170.0040.00418.59
8.1.160.0070.00018.72
8.1.150.0040.00420.22
8.1.140.0040.00419.38
8.1.130.0000.00818.85
8.1.120.0040.00417.35
8.1.110.0030.00517.37
8.1.100.0030.00317.27
8.1.90.0040.00417.31
8.1.80.0040.00417.41
8.1.70.0030.00317.33
8.1.60.0080.00017.44
8.1.50.0050.00317.39
8.1.40.0050.00517.45
8.1.30.0080.00017.43
8.1.20.0000.00817.51
8.1.10.0040.00417.40
8.1.00.0000.00717.32
8.0.300.0000.00719.96
8.0.290.0000.00716.63
8.0.280.0070.00018.45
8.0.270.0030.00317.28
8.0.260.0100.00017.14
8.0.250.0000.00716.93
8.0.240.0000.00717.03
8.0.230.0040.00417.04
8.0.220.0050.00316.85
8.0.210.0040.00416.82
8.0.200.0030.00317.02
8.0.190.0040.00416.97
8.0.180.0000.00816.95
8.0.170.0070.00016.88
8.0.160.0070.00016.91
8.0.150.0030.00516.89
8.0.140.0040.00416.80
8.0.130.0030.00313.33
8.0.120.0040.00416.89
8.0.110.0080.00016.78
8.0.100.0070.00016.99
8.0.90.0030.00316.82
8.0.80.0100.00716.97
8.0.70.0000.00816.90
8.0.60.0070.00016.87
8.0.50.0000.00717.01
8.0.30.0090.00917.09
8.0.20.0090.00917.40
8.0.10.0000.00717.04
8.0.00.0110.01116.68
7.4.330.0000.00515.55
7.4.320.0050.00216.52
7.4.300.0000.00816.37
7.4.290.0030.00316.48
7.4.280.0020.00516.32
7.4.270.0070.00016.45
7.4.260.0040.00416.41
7.4.250.0040.00416.51
7.4.240.0000.00716.59
7.4.230.0030.00316.56
7.4.220.0030.01316.50
7.4.210.0070.01316.47
7.4.200.0030.00316.60
7.4.160.0060.00916.40
7.4.150.0120.00917.40
7.4.140.0100.01017.86
7.4.130.0100.00816.58
7.4.120.0110.00916.46
7.4.110.0130.00316.42
7.4.100.0070.01416.48
7.4.90.0140.00316.36
7.4.80.0160.00319.39
7.4.70.0100.00616.34
7.4.60.0060.01016.56
7.4.50.0030.01316.54
7.4.40.0030.01716.47
7.4.30.0060.01316.54
7.4.00.0060.00914.82
7.3.330.0020.00213.37
7.3.320.0000.00613.38
7.3.310.0070.00016.26
7.3.300.0000.00616.31
7.3.290.0080.00716.38
7.3.280.0110.00616.35
7.3.270.0060.01217.40
7.3.260.0080.00816.38
7.3.250.0040.01416.45
7.3.240.0090.01116.59
7.3.230.0100.00716.58
7.3.210.0120.00616.38
7.3.200.0080.00816.48
7.3.190.0130.00316.64
7.3.180.0130.00316.41
7.3.170.0160.00016.45
7.3.160.0080.00816.31
7.3.120.0070.00414.93
7.3.110.0140.00414.68
7.3.100.0030.00914.88
7.3.90.0040.01415.02
7.3.80.0080.00814.93
7.3.70.0030.00914.60
7.3.60.0040.01114.80
7.3.50.0030.01414.87
7.3.40.0060.01214.73
7.3.30.0040.01114.82
7.3.20.0070.00716.51
7.3.10.0110.00416.35
7.3.00.0090.00616.49
7.2.330.0070.01016.31
7.2.320.0130.00616.59
7.2.310.0100.00716.61
7.2.300.0120.00616.58
7.2.290.0060.00916.71
7.2.250.0060.01314.90
7.2.240.0030.01714.81
7.2.230.0100.00915.05
7.2.220.0080.00815.04
7.2.210.0070.01114.54
7.2.200.0060.00614.75
7.2.190.0030.01314.69
7.2.180.0090.00614.73
7.2.170.0090.00314.83
7.2.60.0150.00016.85
7.2.50.0100.00716.89
7.1.330.0100.00315.48
7.1.320.0070.01015.86
7.1.310.0030.01415.66
7.1.300.0070.00715.87
7.1.290.0030.00915.86
7.1.280.0090.00915.75
7.1.270.0030.01015.58
7.1.260.0030.01315.58
7.1.200.0000.00915.48
7.1.70.0000.00717.20
7.1.60.0030.00917.23
7.1.50.0110.01116.80
7.1.30.0230.05738.25
7.1.20.0370.05038.32
7.1.10.3270.07320.41
7.1.00.2070.05320.45
7.0.200.0070.01016.57
7.0.170.0200.06321.91
7.0.160.2500.07320.00
7.0.150.1830.05719.99
7.0.140.1900.05320.07
7.0.130.3170.06020.13
7.0.120.2900.05319.95
7.0.110.2300.07320.02
7.0.100.3200.05320.01
7.0.90.4230.06020.16
7.0.80.3570.07319.88
7.0.70.2000.06320.03
7.0.60.2230.07320.23
7.0.50.3030.06720.03
7.0.40.3970.08019.97
7.0.30.4070.06320.05
7.0.20.3570.09020.01
7.0.10.3270.08020.06
7.0.00.3000.05719.99

preferences:
56.82 ms | 401 KiB | 5 Q