3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct($a, $b) { var_dump($a, $b); } } class Bar { public function __construct($a) { var_dump($a); } } class Baz { public function __construct($a, $b) { parent::__construct($a, $b); } } $baz = new Baz("foo", "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.0110.00316.75
8.3.50.0110.00417.97
8.3.40.0070.01118.63
8.3.30.0150.00018.72
8.3.20.0070.00020.21
8.3.10.0000.00821.70
8.3.00.0040.00423.66
8.2.180.0090.00618.17
8.2.170.0120.00318.83
8.2.160.0150.00622.96
8.2.150.0030.00625.66
8.2.140.0040.00424.66
8.2.130.0060.00319.70
8.2.120.0040.00426.35
8.2.110.0070.00422.21
8.2.100.0080.00317.80
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0000.00917.38
8.2.60.0030.00617.80
8.2.50.0030.00618.07
8.2.40.0040.00422.32
8.2.30.0000.00720.61
8.2.20.0040.00417.48
8.2.10.0040.00417.93
8.2.00.0040.00418.03
8.1.280.0040.01125.92
8.1.270.0070.00323.71
8.1.260.0080.00028.09
8.1.250.0050.00328.09
8.1.240.0040.00422.18
8.1.230.0040.00819.10
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0100.00017.23
8.1.190.0000.00816.98
8.1.180.0000.00818.10
8.1.170.0040.00418.43
8.1.160.0070.00020.57
8.1.150.0000.00718.79
8.1.140.0050.00319.37
8.1.130.0030.00317.62
8.1.120.0030.00317.39
8.1.110.0000.00717.36
8.1.100.0000.00817.39
8.1.90.0030.00317.34
8.1.80.0030.00517.28
8.1.70.0030.00317.29
8.1.60.0040.00417.44
8.1.50.0050.00317.30
8.1.40.0040.00417.37
8.1.30.0040.00417.50
8.1.20.0040.00417.45
8.1.10.0040.00417.29
8.1.00.0000.00917.33
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.00718.34
8.0.270.0050.00217.14
8.0.260.0040.00416.99
8.0.250.0080.00016.80
8.0.240.0000.00716.86
8.0.230.0070.00016.91
8.0.220.0000.00716.89
8.0.210.0030.00616.86
8.0.200.0030.00316.87
8.0.190.0040.00416.91
8.0.180.0040.00416.87
8.0.170.0040.00416.86
8.0.160.0040.00416.72
8.0.150.0000.00716.83
8.0.140.0030.00316.70
8.0.130.0050.00013.23
8.0.120.0030.00616.74
8.0.110.0000.00716.86
8.0.100.0040.00316.76
8.0.90.0000.00716.70
8.0.80.0150.00616.87
8.0.70.0040.00416.70
8.0.60.0040.00416.66
8.0.50.0040.00416.86
8.0.30.0090.00817.04
8.0.20.0130.00717.40
8.0.10.0070.00016.82
8.0.00.0070.01316.72
7.4.330.0050.00016.78
7.4.320.0030.00316.51
7.4.300.0000.00716.52
7.4.290.0000.00716.45
7.4.280.0000.01016.54
7.4.270.0000.00716.45
7.4.260.0030.00316.42
7.4.250.0040.00416.55
7.4.240.0040.00316.43
7.4.230.0040.00416.38
7.4.220.0120.00616.39
7.4.210.0060.01116.46
7.4.200.0000.00716.65
7.4.160.0060.01316.73
7.4.150.0120.00617.40
7.4.140.0090.01017.86
7.4.130.0100.00916.34
7.4.120.0080.01016.44
7.4.110.0160.00316.56
7.4.100.0040.01416.50
7.4.90.0090.00916.50
7.4.80.0150.00319.39
7.4.70.0060.01616.44
7.4.60.0140.00516.55
7.4.50.0110.00616.45
7.4.40.0140.00316.21
7.4.30.0000.01916.36
7.4.10.0040.01514.62
7.4.00.0060.01214.77
7.3.330.0030.00313.39
7.3.320.0000.00613.36
7.3.310.0000.00716.35
7.3.300.0070.00016.41
7.3.290.0000.00716.35
7.3.280.0070.00916.35
7.3.270.0070.01117.40
7.3.260.0100.01416.36
7.3.250.0080.01116.36
7.3.240.0100.01016.50
7.3.230.0140.00316.39
7.3.210.0100.00716.60
7.3.200.0120.00619.39
7.3.190.0000.01616.25
7.3.180.0120.00616.49
7.3.170.0040.01116.50
7.3.160.0140.00716.43
7.3.130.0100.01014.89
7.3.120.0050.01014.80
7.3.110.0070.01114.65
7.3.100.0070.00914.78
7.3.90.0070.00714.98
7.3.80.0070.00514.93
7.3.70.0060.00914.92
7.3.60.0030.00814.85
7.3.50.0030.01214.69
7.3.40.0030.00914.68
7.3.30.0070.00614.81
7.3.20.0110.00316.52
7.3.10.0040.00916.51
7.3.00.0090.00316.49
7.2.330.0120.00616.49
7.2.320.0060.01216.55
7.2.310.0120.00616.63
7.2.300.0080.01016.52
7.2.290.0080.00816.40
7.2.260.0090.00614.90
7.2.250.0080.00814.90
7.2.240.0050.01414.92
7.2.230.0100.00514.83
7.2.220.0020.01114.85
7.2.210.0060.01014.75
7.2.200.0080.00314.77
7.2.190.0030.00714.79
7.2.180.0060.00714.84
7.2.170.0050.01114.93
7.2.160.0150.00014.84
7.2.150.0090.00316.84
7.2.140.0030.00916.83
7.2.130.0030.00616.55
7.2.120.0030.00616.75
7.2.110.0000.00916.80
7.2.100.0090.00316.78
7.2.90.0130.00016.84
7.2.80.0070.00716.95
7.2.70.0070.00716.61
7.2.60.0090.00516.71
7.2.50.0060.01016.85
7.2.40.0040.00716.74
7.2.30.0040.00416.84
7.2.20.0090.00316.90
7.2.10.0100.00616.94
7.2.00.0050.00918.08
7.1.330.0080.00615.63
7.1.320.0020.00915.61
7.1.310.0040.00915.58
7.1.300.0070.00515.67
7.1.290.0060.00415.66
7.1.280.0070.00815.67
7.1.270.0050.00715.55
7.1.260.0070.00715.74
7.1.250.0080.00415.73
7.1.240.0090.00615.58
7.1.230.0030.01015.64
7.1.220.0110.00415.61
7.1.210.0030.00915.59
7.1.200.0080.00515.66
7.1.190.0000.00815.75
7.1.180.0070.00315.55
7.1.170.0030.00915.61
7.1.160.0000.01315.81
7.1.150.0000.00915.55
7.1.140.0100.00315.72
7.1.130.0070.00715.24
7.1.120.0000.01315.77
7.1.110.0000.01415.41
7.1.100.0070.00616.84
7.1.90.0070.00315.78
7.1.80.0060.00615.71
7.1.70.0040.00716.35
7.1.60.0080.00817.49
7.1.50.0050.01016.25
7.1.40.0000.01315.50
7.1.30.0040.00815.42
7.1.20.0040.01215.26
7.1.10.0050.00815.29
7.1.00.0060.03819.07
7.0.330.0040.00415.13
7.0.320.0000.01415.36
7.0.310.0040.00715.41
7.0.300.0030.00715.30
7.0.290.0060.00915.30
7.0.280.0090.00615.32
7.0.270.0030.00615.32
7.0.260.0000.00915.30
7.0.250.0030.00915.23
7.0.240.0100.00315.48
7.0.230.0110.00415.39
7.0.220.0040.00815.32
7.0.210.0000.00915.11
7.0.200.0080.00316.06
7.0.190.0100.00315.32
7.0.180.0090.00015.37
7.0.170.0030.00615.34
7.0.160.0030.01015.00
7.0.150.0030.01015.23
7.0.140.0000.00915.19
7.0.130.0080.00315.16
7.0.120.0070.01015.22
7.0.110.0000.01315.38
7.0.100.0000.01415.38
7.0.90.0000.01215.34
7.0.80.0070.00715.45
7.0.70.0070.00715.25
7.0.60.0030.04818.46
7.0.50.0080.04316.69
7.0.40.0080.04516.82
7.0.30.0280.04116.90
7.0.20.0170.04516.72
7.0.10.0030.04416.74
7.0.00.0050.02516.72
5.6.400.0100.00314.23
5.6.390.0060.00614.63
5.6.380.0030.01314.36
5.6.370.0050.00513.92
5.6.360.0070.00414.09
5.6.350.0070.00714.39
5.6.340.0000.01014.15
5.6.330.0030.01014.40
5.6.320.0110.00414.39
5.6.310.0070.00714.37
5.6.300.0030.00614.36
5.6.290.0040.01114.21
5.6.280.0070.01014.36
5.6.270.0040.01114.43
5.6.260.0040.00414.25
5.6.250.0030.00914.27
5.6.240.0040.00714.41
5.6.230.0030.01313.98
5.6.220.0110.00314.30
5.6.210.0090.02317.42
5.6.200.0150.03316.19
5.6.190.0050.02317.32
5.6.180.0240.03817.54
5.6.170.0120.03017.35
5.6.160.0100.03317.36
5.6.150.0030.03216.40
5.6.140.0100.04716.33
5.6.130.0070.03016.20
5.6.120.0080.04617.59
5.6.110.0080.04217.65
5.6.100.0210.03417.66
5.6.90.0030.04517.72
5.6.80.0050.04217.22
5.6.70.0030.00713.98
5.6.60.0050.00514.35
5.6.50.0030.00914.20
5.6.40.0030.01013.97
5.6.30.0100.00714.35
5.6.20.0060.00613.93
5.6.10.0000.00814.07
5.6.00.0040.01114.17
5.5.380.0030.01014.19
5.5.370.0000.01214.13
5.5.360.0060.00914.25
5.5.350.0110.04017.20
5.5.340.0070.04715.95
5.5.330.0100.02017.23
5.5.320.0100.04617.30
5.5.310.0240.02217.30
5.5.300.0070.04415.87
5.5.290.0050.03315.96
5.5.280.0030.02617.65
5.5.270.0070.04517.42
5.5.260.0030.02617.43
5.5.250.0090.03217.41
5.5.240.0150.03017.21
5.5.230.0030.01514.03
5.5.220.0030.01014.21
5.5.210.0120.00314.21
5.5.200.0040.00714.05
5.5.190.0030.01413.93
5.5.180.0100.00313.93
5.5.170.0130.00013.75
5.5.160.0030.01014.23
5.5.150.0140.00014.15
5.5.140.0100.00014.16
5.5.130.0040.00813.92
5.5.120.0080.00414.08
5.5.110.0030.00613.83
5.5.100.0030.00714.08
5.5.90.0070.00714.21
5.5.80.0040.01114.07
5.5.70.0150.00013.84
5.5.60.0090.00613.86
5.5.50.0100.00714.24
5.5.40.0070.00414.14
5.5.30.0080.00313.88
5.5.20.0100.00314.23
5.5.10.0130.00313.74
5.5.00.0070.00714.13

preferences:
47.35 ms | 401 KiB | 5 Q