3v4l.org

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

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.0110.00316.50
8.3.50.0070.00717.93
8.3.40.0030.01618.83
8.3.30.0110.00418.72
8.3.20.0040.00420.34
8.3.10.0110.00420.20
8.3.00.0080.00021.77
8.2.180.0090.00916.50
8.2.170.0110.00422.96
8.2.160.0100.01020.34
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0080.00020.54
8.2.120.0040.00426.35
8.2.110.0090.00019.39
8.2.100.0090.00317.89
8.2.90.0050.00319.76
8.2.80.0030.00618.03
8.2.70.0040.00417.93
8.2.60.0030.00517.93
8.2.50.0030.00618.10
8.2.40.0000.00720.41
8.2.30.0000.00719.23
8.2.20.0000.00718.05
8.2.10.0040.00418.03
8.2.00.0050.00218.22
8.1.280.0070.01425.92
8.1.270.0080.00022.14
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0140.00720.75
8.1.230.0000.01019.00
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0080.00017.23
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0040.00418.86
8.1.150.0040.00420.32
8.1.140.0040.00419.51
8.1.130.0070.00017.39
8.1.120.0040.00417.45
8.1.110.0000.00817.41
8.1.100.0000.00717.33
8.1.90.0000.00717.36
8.1.80.0040.00417.29
8.1.70.0000.00717.37
8.1.60.0050.00317.50
8.1.50.0040.00417.44
8.1.40.0040.00417.52
8.1.30.0040.00417.44
8.1.20.0040.00417.58
8.1.10.0030.00617.50
8.1.00.0030.00517.45
8.0.300.0000.00720.04
8.0.290.0000.00716.75
8.0.280.0030.00318.44
8.0.270.0000.00717.23
8.0.260.0070.00016.95
8.0.250.0030.00316.95
8.0.240.0050.00316.84
8.0.230.0040.00417.05
8.0.220.0080.00016.94
8.0.210.0030.00316.91
8.0.200.0030.00317.02
8.0.190.0070.00016.90
8.0.180.0000.00716.95
8.0.170.0040.00416.96
8.0.160.0000.00716.85
8.0.150.0040.00416.91
8.0.140.0030.00316.92
8.0.130.0030.00313.39
8.0.120.0050.00316.77
8.0.110.0000.00717.02
8.0.100.0030.00516.73
8.0.90.0040.00417.00
8.0.80.0040.01116.96
8.0.70.0040.00416.81
8.0.60.0040.00416.94
8.0.50.0000.00716.84
8.0.30.0060.01417.23
8.0.20.0130.00817.40
8.0.10.0000.00716.89
8.0.00.0030.01616.53
7.4.330.0000.00515.55
7.4.320.0070.00016.24
7.4.300.0070.00016.45
7.4.290.0030.00316.59
7.4.280.0000.00716.54
7.4.270.0070.00016.54
7.4.260.0030.00516.38
7.4.250.0050.00316.39
7.4.240.0030.00516.46
7.4.230.0070.00016.62
7.4.220.0070.01016.50
7.4.210.0160.00016.65
7.4.200.0000.00716.43
7.4.160.0100.00816.46
7.4.150.0070.01117.40
7.4.140.0190.01217.86
7.4.130.0110.00616.52
7.4.120.0130.00716.54
7.4.110.0060.01016.52
7.4.100.0120.00616.30
7.4.90.0100.00716.41
7.4.80.0040.01819.39
7.4.70.0000.01616.60
7.4.60.0140.00316.32
7.4.50.0050.01216.38
7.4.40.0040.01816.54
7.4.30.0100.00616.20
7.4.00.0100.00715.10
7.3.330.0000.00513.32
7.3.320.0030.00313.37
7.3.310.0000.00716.40
7.3.300.0070.00016.32
7.3.290.0110.00716.34
7.3.280.0080.01016.34
7.3.270.0130.00417.40
7.3.260.0070.01116.32
7.3.250.0110.00716.35
7.3.240.0140.00416.50
7.3.230.0070.01016.57
7.3.210.0030.01316.54
7.3.200.0070.01016.46
7.3.190.0080.00816.53
7.3.180.0030.01316.55
7.3.170.0060.01116.28
7.3.160.0070.00716.32
7.3.00.0000.01016.48
7.2.330.0040.01516.26
7.2.320.0100.01316.21
7.2.310.0110.00716.53
7.2.300.0090.00916.63
7.2.290.0030.01216.40
7.2.130.0030.01016.79
7.2.120.0050.00516.82
7.2.110.0110.00716.61
7.2.100.0070.00716.54
7.2.90.0040.01116.39
7.2.80.0100.00316.95
7.2.70.0030.00916.96
7.2.60.0090.00716.95
7.2.50.0080.00816.77
7.2.40.0060.00916.75
7.2.30.0030.01316.67
7.2.20.0070.00716.76
7.2.10.0060.00916.84
7.2.00.0080.00618.04
7.1.250.0070.00715.71
7.1.240.0090.00615.84
7.1.230.0090.00615.61
7.1.220.0030.01015.61
7.1.210.0030.00715.66
7.1.200.0060.00915.58
7.1.190.0070.00715.68
7.1.180.0070.00315.68
7.1.170.0030.00915.39
7.1.160.0040.00415.57
7.1.150.0090.00615.71
7.1.140.0140.00015.42
7.1.130.0040.00715.50
7.1.120.0070.00715.46
7.1.110.0050.00415.79
7.1.100.0020.01016.97
7.1.90.0100.00715.71
7.1.80.0120.00315.62
7.1.70.0060.01016.08
7.1.60.0060.00716.38
7.1.50.0070.00916.29
7.1.40.0040.01115.67
7.1.30.0170.04027.00
7.1.20.0150.03427.01
7.1.10.0880.03418.03
7.1.00.1000.03318.10
7.0.330.0040.00415.07
7.0.320.0070.00315.43
7.0.310.0070.00715.00
7.0.300.0030.00915.20
7.0.290.0070.00715.32
7.0.280.0070.00315.46
7.0.270.0080.00315.07
7.0.260.0060.00615.01
7.0.250.0090.00315.41
7.0.240.0090.00015.17
7.0.230.0070.00715.11
7.0.220.0030.00615.04
7.0.210.0040.01115.34
7.0.200.0060.00716.04
7.0.190.0070.00715.41
7.0.180.0060.00615.38
7.0.170.0080.04318.42
7.0.160.1320.03217.70
7.0.150.0850.04517.60
7.0.140.1180.03817.63
7.0.130.1500.04717.61
7.0.120.1480.03817.47
7.0.110.1540.03717.69
7.0.100.1190.03817.63
7.0.90.0990.02917.61
7.0.80.1460.03317.59
7.0.70.0050.03717.49
7.0.60.0910.03017.67
7.0.50.1620.04217.75
7.0.40.0050.03616.73
7.0.30.1320.03216.70
7.0.20.0100.03217.46
7.0.10.1310.03316.67
7.0.00.0090.03116.66
5.6.380.0130.00314.20

preferences:
81.97 ms | 401 KiB | 5 Q