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);

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.00318.55
8.3.50.0130.00721.22
8.3.40.0070.00718.54
8.3.30.0080.00818.67
8.3.20.0000.00720.20
8.3.10.0040.00423.53
8.3.00.0080.00021.91
8.2.180.0070.00716.63
8.2.170.0170.00322.96
8.2.160.0030.01020.29
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00821.13
8.2.120.0030.00626.35
8.2.110.0110.00620.38
8.2.100.0040.00818.04
8.2.90.0080.00019.22
8.2.80.0090.00017.97
8.2.70.0030.00617.37
8.2.60.0050.00217.93
8.2.50.0000.00818.09
8.2.40.0050.00320.30
8.2.30.0000.00819.29
8.2.20.0050.00517.57
8.2.10.0040.00417.91
8.2.00.0000.00717.88
8.1.280.0100.01025.92
8.1.270.0060.00322.19
8.1.260.0050.00228.09
8.1.250.0070.00028.09
8.1.240.0140.00323.89
8.1.230.0110.00017.58
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0050.00518.38
8.1.160.0070.00020.68
8.1.150.0030.00620.46
8.1.140.0050.00319.54
8.1.130.0050.00317.59
8.1.120.0000.00717.35
8.1.110.0040.00417.25
8.1.100.0000.00817.40
8.1.90.0040.00417.28
8.1.80.0030.00617.37
8.1.70.0000.00717.45
8.1.60.0040.00717.48
8.1.50.0030.00517.35
8.1.40.0000.00817.42
8.1.30.0000.00917.61
8.1.20.0000.00717.56
8.1.10.0030.00517.40
8.1.00.0000.00817.44
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0030.00318.34
8.0.270.0030.00317.20
8.0.260.0030.00617.19
8.0.250.0000.00716.91
8.0.240.0070.00016.82
8.0.230.0080.00016.92
8.0.220.0040.00716.81
8.0.210.0040.00416.69
8.0.200.0000.00616.92
8.0.190.0040.00416.77
8.0.180.0000.00716.87
8.0.170.0000.00916.89
8.0.160.0040.00416.79
8.0.150.0040.00416.80
8.0.140.0000.00716.74
8.0.130.0030.00313.29
8.0.120.0030.00516.64
8.0.110.0080.00016.78
8.0.100.0000.00816.81
8.0.90.0040.00416.69
8.0.80.0090.00616.77
8.0.70.0030.00516.79
8.0.60.0040.00416.73
8.0.50.0030.00516.88
8.0.30.0120.00516.88
8.0.20.0080.01117.40
8.0.10.0000.00716.96
8.0.00.0110.01016.76
7.4.330.0050.00016.67
7.4.320.0000.00616.43
7.4.300.0030.00316.55
7.4.290.0070.00016.52
7.4.280.0050.00316.45
7.4.270.0030.00316.43
7.4.260.0070.00416.52
7.4.250.0000.00716.51
7.4.240.0040.00416.52
7.4.230.0050.00216.53
7.4.220.0130.01016.59
7.4.210.0080.00816.48
7.4.200.0040.00416.43
7.4.160.0120.00316.59
7.4.150.0090.01317.40
7.4.140.0120.01317.86
7.4.130.0060.01016.48
7.4.120.0100.00716.44
7.4.110.0140.00316.56
7.4.100.0060.01316.48
7.4.90.0150.00316.47
7.4.80.0150.00319.39
7.4.70.0140.01216.45
7.4.60.0090.00616.48
7.4.50.0100.00316.41
7.4.40.0130.01016.53
7.4.30.0060.01216.35
7.4.10.0040.01314.70
7.4.00.0100.00514.85
7.3.330.0040.00413.03
7.3.320.0000.00513.27
7.3.310.0040.00416.26
7.3.300.0040.00416.31
7.3.290.0030.00316.11
7.3.280.0130.00416.23
7.3.270.0170.00917.40
7.3.260.0070.01016.28
7.3.250.0090.01016.25
7.3.240.0080.00816.42
7.3.230.0070.01316.50
7.3.210.0030.01316.29
7.3.200.0100.01019.39
7.3.190.0060.01216.32
7.3.180.0090.01216.29
7.3.170.0060.01216.58
7.3.160.0140.00616.26
7.3.130.0090.00914.75
7.3.120.0100.00714.99
7.3.110.0090.00914.74
7.3.100.0030.01014.54
7.3.90.0150.00014.95
7.3.80.0080.00414.70
7.3.70.0040.00714.36
7.3.60.0040.00814.52
7.3.50.0090.00314.71
7.3.40.0070.00714.85
7.3.30.0060.00614.80
7.3.20.0000.01516.42
7.3.10.0090.00416.68
7.3.00.0040.00916.41
7.2.330.0110.00716.39
7.2.320.0060.01616.34
7.2.310.0140.00316.63
7.2.300.0070.01016.34
7.2.290.0120.00416.38
7.2.260.0070.01314.62
7.2.250.0070.01014.66
7.2.240.0060.00914.79
7.2.230.0030.01215.04
7.2.220.0030.00614.95
7.2.210.0040.01115.13
7.2.200.0070.01014.61
7.2.190.0070.00714.82
7.2.180.0030.00714.90
7.2.170.0070.01015.01
7.2.160.0170.00014.81
7.2.150.0030.01316.53
7.2.140.0060.00916.50
7.2.130.0060.00516.71
7.2.120.0050.00816.79
7.2.110.0050.01116.64
7.2.100.0080.00616.62
7.2.90.0060.00616.72
7.2.80.0050.00816.64
7.2.70.0030.01516.87
7.2.60.0050.00716.77
7.2.50.0090.00316.87
7.2.40.0060.00616.71
7.2.30.0080.00716.95
7.2.20.0060.00416.89
7.2.10.0100.00316.56
7.2.00.0050.00717.60
7.1.330.0060.00915.55
7.1.320.0080.00615.64
7.1.310.0000.01215.70
7.1.300.0090.00315.64
7.1.290.0030.00915.58
7.1.280.0060.00615.39
7.1.270.0030.00615.79
7.1.260.0090.00315.69
7.1.250.0050.00815.51
7.1.240.0040.01115.63
7.1.230.0010.00915.72
7.1.220.0070.00715.77
7.1.210.0040.00915.57
7.1.200.0040.00915.62
7.1.190.0060.00815.60
7.1.180.0020.01015.61
7.1.170.0040.01115.53
7.1.160.0070.00815.84
7.1.150.0070.00415.62
7.1.140.0060.00615.63
7.1.130.0070.00715.71
7.1.120.0050.01015.78
7.1.110.0020.00815.71
7.1.100.0080.00516.62
7.1.90.0100.00315.50
7.1.80.0050.01015.74
7.1.70.0050.00516.13
7.1.60.0060.00916.89
7.1.50.0080.00816.10
7.1.40.0020.00815.78
7.1.30.0090.00515.62
7.1.20.0060.00715.59
7.1.10.0050.00415.73
7.1.00.0070.03017.96
7.0.330.0050.00815.33
7.0.320.0050.00715.23
7.0.310.0080.00615.19
7.0.300.0030.00615.32
7.0.290.0050.00715.21
7.0.280.0050.00715.09
7.0.270.0060.00815.29
7.0.260.0070.00715.27
7.0.250.0080.00415.18
7.0.240.0040.00615.40
7.0.230.0070.00515.16
7.0.220.0020.01315.09
7.0.210.0060.00515.44
7.0.200.0220.01015.20
7.0.190.0080.00515.22
7.0.180.0050.00715.20
7.0.170.0020.01115.30
7.0.160.0020.01015.20
7.0.150.0070.00415.31
7.0.140.0020.00915.09
7.0.130.0050.00715.27
7.0.120.0060.00515.19
7.0.110.0080.00415.22
7.0.100.0050.00515.14
7.0.90.0100.00515.30
7.0.80.0050.00815.35
7.0.70.0090.00515.36
7.0.60.0070.02017.40
7.0.50.0030.03116.20
7.0.40.0070.02315.61
7.0.30.0120.01515.74
7.0.20.0140.02315.56
7.0.10.0130.02715.71
7.0.00.0040.03415.50
5.6.400.0060.00614.21
5.6.390.0000.01514.06
5.6.380.0030.00814.11
5.6.370.0090.00514.17
5.6.360.0060.00814.28
5.6.350.0050.00914.26
5.6.340.0050.00914.29
5.6.330.0070.00214.40
5.6.320.0040.01114.23
5.6.310.0060.00614.13
5.6.300.0050.00914.31
5.6.290.0080.00714.17
5.6.280.0040.01516.50
5.6.270.0050.00814.55
5.6.260.0050.00814.22
5.6.250.0060.00914.42
5.6.240.0060.00514.31
5.6.230.0050.00914.24
5.6.220.0090.00514.20
5.6.210.0060.03116.32
5.6.200.0050.03315.40
5.6.190.0050.02616.27
5.6.180.0160.02916.40
5.6.170.0170.03016.27
5.6.160.0100.02216.28
5.6.150.0080.02915.65
5.6.140.0070.03115.59
5.6.130.0060.03115.55
5.6.120.0090.03116.59
5.6.110.0060.03516.34
5.6.100.0070.03016.32
5.6.90.0060.03116.42
5.6.80.0040.03316.16
5.6.70.0080.00714.11
5.6.60.0040.00914.24
5.6.50.0070.00614.05
5.6.40.0060.00513.97
5.6.30.0010.01014.08
5.6.20.0060.00814.20
5.6.10.0060.00614.10
5.6.00.0090.00414.23
5.5.380.0070.00512.53
5.5.370.0030.00912.53
5.5.360.0030.00812.57
5.5.350.0150.02515.12
5.5.340.0050.03314.14
5.5.330.0100.02815.12
5.5.320.0180.01715.15
5.5.310.0140.01415.25
5.5.300.0020.02314.41
5.5.290.0050.03014.49
5.5.280.0060.03015.40
5.5.270.0080.02815.12
5.5.260.0040.03315.42
5.5.250.0050.02215.21
5.5.240.0110.01815.12
5.5.230.0070.00512.43
5.5.220.0040.01112.30
5.5.210.0080.00512.60
5.5.200.0020.01012.50
5.5.190.0080.00612.49
5.5.180.0030.01012.45
5.5.170.0020.01012.54
5.5.160.0050.00712.33
5.5.150.0040.00312.52
5.5.140.0060.00612.36
5.5.130.0030.00512.34
5.5.120.0020.00912.55
5.5.110.0060.00412.33
5.5.100.0110.00212.53
5.5.90.0060.00312.62
5.5.80.0020.00912.51
5.5.70.0070.00712.43
5.5.60.0060.00512.34
5.5.50.0050.00412.53
5.5.40.0040.00912.47
5.5.30.0050.00412.41
5.5.20.0080.00312.46
5.5.10.0080.00312.50
5.5.00.0060.00612.33

preferences:
50.16 ms | 401 KiB | 5 Q