3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class Foo { public function __construct($bar) { } } class Bar { } $foo = new Foo(new Bar());

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.0070.01416.50
8.3.50.0100.01222.05
8.3.40.0120.00318.38
8.3.30.0110.00418.74
8.3.20.0000.00720.20
8.3.10.0040.00423.64
8.3.00.0040.00419.01
8.2.180.0120.00316.63
8.2.170.0120.00622.96
8.2.160.0060.01220.22
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0080.00017.50
8.2.120.0000.00726.35
8.2.110.0060.00320.53
8.2.100.0090.00317.75
8.2.90.0050.00319.05
8.2.80.0030.00617.97
8.2.70.0000.00917.38
8.2.60.0030.00617.92
8.2.50.0000.00818.07
8.2.40.0000.00819.41
8.2.30.0070.00020.73
8.2.20.0060.00317.68
8.2.10.0030.00517.91
8.2.00.0000.00717.98
8.1.280.0120.00625.92
8.1.270.0060.00323.97
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0030.00722.02
8.1.230.0040.00717.66
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0070.00317.10
8.1.190.0040.00417.52
8.1.180.0040.00418.10
8.1.170.0000.00818.56
8.1.160.0000.00721.96
8.1.150.0030.00618.84
8.1.140.0000.00819.49
8.1.130.0040.00417.63
8.1.120.0040.00417.34
8.1.110.0000.00717.36
8.1.100.0070.00017.24
8.1.90.0000.00717.35
8.1.80.0040.00417.24
8.1.70.0040.00417.29
8.1.60.0040.00417.46
8.1.50.0050.00317.47
8.1.40.0050.00317.48
8.1.30.0000.00917.54
8.1.20.0050.00317.56
8.1.10.0080.00017.50
8.1.00.0060.00617.45
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0070.00018.28
8.0.270.0080.00017.25
8.0.260.0000.00617.10
8.0.250.0000.00616.93
8.0.240.0000.00716.74
8.0.230.0030.00616.88
8.0.220.0020.00516.81
8.0.210.0070.00016.80
8.0.200.0030.00316.84
8.0.190.0050.00316.86
8.0.180.0030.00416.73
8.0.170.0050.00316.75
8.0.160.0040.00416.68
8.0.150.0080.00016.73
8.0.140.0000.00716.66
8.0.130.0030.00313.29
8.0.120.0030.00616.68
8.0.110.0000.00716.86
8.0.100.0040.00416.64
8.0.90.0090.00016.88
8.0.80.0060.00916.85
8.0.70.0020.00516.64
8.0.60.0000.00816.71
8.0.50.0040.00416.65
8.0.30.0110.01016.98
8.0.20.0120.00817.40
8.0.10.0040.00416.73
8.0.00.0120.00716.68
7.4.330.0060.00016.85
7.4.320.0000.00616.57
7.4.300.0000.00616.58
7.4.290.0030.00316.48
7.4.280.0050.00316.41
7.4.270.0070.00016.54
7.4.260.0030.00316.54
7.4.250.0000.00816.56
7.4.240.0040.00416.42
7.4.230.0030.00316.38
7.4.220.0060.01616.61
7.4.210.0090.00916.48
7.4.200.0070.00016.33
7.4.160.0110.00616.42
7.4.150.0140.00317.40
7.4.140.0130.00617.86
7.4.130.0110.00716.48
7.4.120.0100.00716.39
7.4.110.0060.01116.45
7.4.100.0090.00816.42
7.4.90.0070.01016.48
7.4.80.0140.00719.39
7.4.70.0100.00716.32
7.4.60.0060.01016.52
7.4.50.0100.00616.47
7.4.40.0070.01016.40
7.4.30.0190.00316.49
7.4.00.0070.00314.76
7.3.330.0060.00013.27
7.3.320.0060.00013.06
7.3.310.0000.00716.06
7.3.300.0000.00616.25
7.3.290.0060.01116.21
7.3.280.0060.01216.21
7.3.270.0120.00617.40
7.3.260.0100.00716.42
7.3.250.0080.00916.28
7.3.240.0120.00716.18
7.3.230.0080.00916.39
7.3.210.0060.01116.33
7.3.200.0070.01016.52
7.3.190.0100.00616.59
7.3.180.0130.00316.18
7.3.170.0090.01216.41
7.3.160.0080.00816.54
7.3.10.0070.00716.51
7.3.00.0070.01016.36
7.2.330.0090.00916.25
7.2.320.0100.00716.55
7.2.310.0090.01216.71
7.2.300.0030.01716.30
7.2.290.0100.01316.27
7.2.130.0030.01016.89
7.2.120.0040.01116.95
7.2.110.0000.01416.70
7.2.100.0040.00716.84
7.2.90.0070.01016.87
7.2.80.0000.01716.86
7.2.70.0000.01316.63
7.2.60.0070.00716.50
7.2.50.0040.00716.68
7.2.40.0070.01016.57
7.2.30.0090.00616.50
7.2.20.0000.01616.77
7.2.10.0060.00617.08
7.2.00.0050.00917.91
7.1.250.0030.01015.46
7.1.200.0000.01115.35
7.1.100.0060.00617.75
7.1.70.0070.00716.88
7.1.60.0100.01319.36
7.1.50.0130.01016.85
7.1.00.0030.07722.48
7.0.200.0000.00716.61
7.0.60.0070.07319.86
7.0.50.0030.05317.94
7.0.40.0000.05320.09
7.0.30.0270.07020.08
7.0.20.0370.07020.09
7.0.10.0100.05020.26
7.0.00.0030.05720.30
5.6.280.0030.07021.00
5.6.210.0170.06320.75
5.6.200.0130.03318.29
5.6.190.0030.07720.52
5.6.180.0330.04720.46
5.6.170.0370.04720.62
5.6.160.0100.07020.52
5.6.150.0070.06018.18
5.6.140.0100.08018.25
5.6.130.0030.04718.23
5.6.120.0070.08320.95
5.6.110.0030.07021.13
5.6.100.0100.08021.13
5.6.90.0030.04721.10
5.6.80.0100.07320.51
5.5.350.0170.04720.42
5.5.340.0030.05718.05
5.5.330.0030.04720.27
5.5.320.0070.08320.31
5.5.310.0270.06720.27
5.5.300.0100.06017.95
5.5.290.0000.05317.97
5.5.280.0070.05720.89
5.5.270.0100.07020.87
5.5.260.0100.05020.76
5.5.250.0100.06320.66
5.5.240.4270.03320.13

preferences:
43.15 ms | 401 KiB | 5 Q