3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class Foo { public function __construct(int $number, string $name, float $currency) { var_export(func_get_args()); } } new Foo(1, 'Mag', 3.99); new Foo('not a number', 1, 'not a float');

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.0060.00918.63
8.3.50.0100.01121.21
8.3.40.0140.00018.73
8.3.30.0040.01118.79
8.3.20.0070.00020.02
8.3.10.0000.00821.81
8.3.00.0030.00521.85
8.2.180.0120.00316.75
8.2.170.0110.00722.96
8.2.160.0110.00620.52
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00421.05
8.2.120.0000.00726.35
8.2.110.0100.00720.38
8.2.100.0070.00417.97
8.2.90.0040.00419.10
8.2.80.0080.00017.97
8.2.70.0030.00617.63
8.2.60.0040.00417.93
8.2.50.0040.00418.09
8.2.40.0040.00422.33
8.2.30.0030.00619.37
8.2.20.0030.00717.73
8.2.10.0040.00418.11
8.2.00.0040.00417.96
8.1.280.0070.01425.92
8.1.270.0060.00322.19
8.1.260.0050.00328.09
8.1.250.0070.00028.09
8.1.240.0080.00322.15
8.1.230.0060.00620.90
8.1.220.0030.00617.74
8.1.210.0090.00018.77
8.1.200.0040.00417.35
8.1.190.0000.00817.35
8.1.180.0080.00018.10
8.1.170.0090.00018.46
8.1.160.0000.00720.66
8.1.150.0030.00718.88
8.1.140.0030.00519.56
8.1.130.0040.00417.73
8.1.120.0030.00317.38
8.1.110.0040.00417.29
8.1.100.0030.00517.35
8.1.90.0040.00417.28
8.1.80.0080.00017.39
8.1.70.0070.00017.29
8.1.60.0030.00617.41
8.1.50.0050.00317.34
8.1.40.0080.00017.52
8.1.30.0000.00817.55
8.1.20.0040.00417.48
8.1.10.0030.00517.52
8.1.00.0070.00017.48
8.0.300.0070.00018.77
8.0.290.0050.00216.75
8.0.280.0070.00018.46
8.0.270.0030.00317.25
8.0.260.0000.00717.31
8.0.250.0000.00717.08
8.0.240.0000.00716.86
8.0.230.0040.00417.04
8.0.220.0090.00016.88
8.0.210.0040.00416.96
8.0.200.0000.00717.00
8.0.190.0070.00017.06
8.0.180.0050.00317.00
8.0.170.0030.00616.91
8.0.160.0030.00616.95
8.0.150.0000.00716.94
8.0.140.0050.00316.87
8.0.130.0070.00013.36
8.0.120.0080.00016.92
8.0.110.0000.00816.97
8.0.100.0050.00216.87
8.0.90.0080.00016.89
8.0.80.0000.01516.93
8.0.70.0070.00016.82
8.0.60.0040.00416.94
8.0.50.0040.00416.87
8.0.30.0120.00617.07
8.0.20.0090.01317.40
8.0.10.0030.00516.96
8.0.00.0120.00816.66
7.4.330.0000.00516.67
7.4.320.0060.00016.56
7.4.300.0030.00316.38
7.4.290.0000.00816.54
7.4.280.0040.00416.52
7.4.270.0000.00716.55
7.4.260.0070.00316.29
7.4.250.0040.00416.36
7.4.240.0030.00316.55
7.4.230.0000.00716.32
7.4.220.0090.00916.48
7.4.210.0070.00716.56
7.4.200.0040.00416.65
7.4.160.0060.00916.43
7.4.150.0140.00417.40
7.4.140.0120.01417.86
7.4.130.0120.00616.47
7.4.120.0080.01216.50
7.4.110.0140.00416.32
7.4.100.0070.01116.72
7.4.90.0120.00816.52
7.4.80.0060.01219.39
7.4.70.0190.00516.63
7.4.60.0020.01516.57
7.4.50.0090.00316.27
7.4.40.0170.00316.42
7.4.30.0060.01116.55
7.4.00.0080.00315.08
7.3.330.0020.00513.39
7.3.320.0050.00013.38
7.3.310.0000.00616.32
7.3.300.0000.00616.28
7.3.290.0030.00316.25
7.3.280.0120.00616.38
7.3.270.0030.01517.40
7.3.260.0070.01016.42
7.3.250.0060.01216.47
7.3.240.0060.01216.34
7.3.230.0060.01216.39
7.3.210.0100.00916.30
7.3.200.0030.01619.39
7.3.190.0060.01616.55
7.3.180.0030.01716.41
7.3.170.0110.00716.38
7.3.160.0100.00716.30
7.2.330.0040.01516.64
7.2.320.0110.00716.53
7.2.310.0090.00616.29
7.2.300.0060.01616.69
7.2.290.0130.00316.45
7.2.60.0090.00616.73
7.2.00.0060.01119.41
7.1.200.0030.00915.43
7.1.100.0040.00817.98
7.1.70.0140.01116.80
7.1.60.0090.00619.40
7.1.50.0030.01816.79
7.1.00.0070.07022.31
7.0.200.0700.01014.81
7.0.60.0100.03321.81
7.0.50.0030.08717.88
7.0.40.0030.09020.09
7.0.30.0170.05320.07
7.0.20.0270.04320.09
7.0.10.0030.05320.06
7.0.00.0070.04720.20
5.6.280.0070.03020.91
5.6.210.0070.06720.48
5.6.200.0170.06318.29
5.6.190.0100.04020.61
5.6.180.0330.07720.77
5.6.170.0270.07320.39
5.6.160.0030.06720.71
5.6.150.0100.07318.29
5.6.140.0070.07018.14
5.6.130.0030.07318.14
5.6.120.0030.05721.14
5.6.110.0030.09021.05
5.6.100.0100.08321.01
5.6.90.0070.07321.10
5.6.80.0270.06320.29
5.5.350.0300.05020.39
5.5.340.0030.08018.08
5.5.330.0070.04320.43
5.5.320.0400.04020.24
5.5.310.0170.05320.34
5.5.300.0100.07018.00
5.5.290.0070.08017.98
5.5.280.0070.08720.89
5.5.270.0000.06320.68
5.5.260.0070.07320.80
5.5.250.0170.07720.64
5.5.240.0270.05320.21

preferences:
36.72 ms | 401 KiB | 5 Q