3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bar = 'foo'; $klass = new class ($bar) { protected $bar; public function __construct(...$args) { $this->bar = $args[0]; } }; //new $klass;

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.0150.00016.50
8.3.50.0090.00921.90
8.3.40.0120.00618.85
8.3.30.0170.00018.58
8.3.20.0040.00420.16
8.3.10.0090.00023.52
8.3.00.0060.00319.38
8.2.180.0130.00718.16
8.2.170.0040.01122.96
8.2.160.0100.00320.30
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00317.63
8.2.110.0060.00322.16
8.2.100.0090.00317.87
8.2.90.0050.00319.40
8.2.80.0030.00617.97
8.2.70.0050.00317.75
8.2.60.0040.00417.50
8.2.50.0000.00817.63
8.2.40.0080.00019.94
8.2.30.0030.00420.57
8.2.20.0040.00417.74
8.2.10.0070.00017.99
8.2.00.0040.00418.11
8.1.280.0140.00325.92
8.1.270.0040.00423.73
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.64
8.1.230.0080.00417.77
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0060.00317.38
8.1.190.0000.00817.36
8.1.180.0030.00518.10
8.1.170.0080.00019.13
8.1.160.0040.00422.00
8.1.150.0000.00718.89
8.1.140.0000.00819.48
8.1.130.0030.00317.48
8.1.120.0030.00317.50
8.1.110.0000.01017.34
8.1.100.0000.01017.48
8.1.90.0000.00817.52
8.1.80.0000.00817.41
8.1.70.0000.00617.44
8.1.60.0000.00817.55
8.1.50.0040.00417.39
8.1.40.0040.00417.54
8.1.30.0000.00817.71
8.1.20.0070.00017.64
8.1.10.0040.00417.44
8.1.00.0000.00817.45
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0000.00718.28
8.0.270.0030.00517.15
8.0.260.0000.00716.71
8.0.250.0040.00416.95
8.0.240.0020.00516.96
8.0.230.0070.00016.94
8.0.220.0030.00316.89
8.0.210.0000.00716.86
8.0.200.0060.00016.81
8.0.190.0000.00816.88
8.0.180.0060.00316.86
8.0.170.0040.00416.86
8.0.160.0000.00716.94
8.0.150.0030.00316.85
8.0.140.0040.00416.74
8.0.130.0000.00613.30
8.0.120.0080.00016.73
8.0.110.0040.00416.85
8.0.100.0000.00816.76
8.0.90.0000.00716.88
8.0.80.0040.01116.77
8.0.70.0030.00616.76
8.0.60.0040.00416.93
8.0.50.0070.00016.94
8.0.30.0100.00716.97
8.0.20.0080.01317.40
8.0.10.0030.00516.89
8.0.00.0070.01016.73
7.4.330.0060.00015.14
7.4.320.0060.00016.60
7.4.300.0060.00016.57
7.4.290.0070.00016.58
7.4.280.0040.00416.39
7.4.270.0050.00516.48
7.4.260.0030.00516.34
7.4.250.0040.00416.48
7.4.240.0000.00716.56
7.4.230.0000.00716.33
7.4.220.0090.00916.62
7.4.210.0070.01016.53
7.4.200.0030.00316.61
7.4.160.0070.00716.51
7.4.150.0070.01317.40
7.4.140.0140.00517.86
7.4.130.0150.00316.46
7.4.120.0110.00616.57
7.4.110.0070.01116.46
7.4.100.0090.00916.54
7.4.90.0160.00616.45
7.4.80.0090.01219.39
7.4.70.0110.00716.58
7.4.60.0000.01616.43
7.4.50.0030.00516.22
7.4.40.0130.00316.45
7.4.30.0120.01216.30
7.4.00.0090.00614.78
7.3.330.0050.00013.22
7.3.320.0030.00213.36
7.3.310.0040.00416.31
7.3.300.0040.00316.40
7.3.290.0100.00816.30
7.3.280.0090.01216.25
7.3.270.0140.00417.40
7.3.260.0030.01416.50
7.3.240.0070.00916.43
7.3.230.0130.01016.39
7.3.210.0060.01016.31
7.3.200.0100.01016.25
7.3.190.0130.00316.35
7.3.180.0030.01216.32
7.3.170.0060.01216.27
7.3.160.0060.00916.52
7.2.330.0100.00616.72
7.2.320.0060.01216.73
7.2.310.0030.01316.49
7.2.300.0070.01016.61
7.2.290.0130.00916.58
7.2.60.0030.01016.85
7.2.00.0030.01019.38
7.1.200.0000.00915.74
7.1.100.0070.01118.17
7.1.70.0090.00017.08
7.1.60.0070.01419.43
7.1.50.0060.01017.03
7.1.00.0000.08022.42
7.0.200.0490.00414.66
7.0.60.0170.07019.78
7.0.50.0000.04317.93
7.0.40.0100.05720.27
7.0.30.0070.07720.16
7.0.20.0430.07020.08
7.0.10.0100.05020.24
7.0.00.0170.05320.19
5.6.280.0030.06321.11
5.6.210.0130.07720.64
5.6.200.0030.04318.29
5.6.190.0100.08020.51
5.6.180.0470.07020.77
5.6.170.0200.05020.62
5.6.160.0030.04320.61
5.6.150.0000.04318.23
5.6.140.0100.07718.19
5.6.130.0000.04318.25
5.6.120.0200.02721.02
5.6.110.0070.06720.97
5.6.100.0130.08021.11
5.6.90.0130.05320.97
5.6.80.0100.07320.40
5.5.350.0330.04020.34
5.5.340.0070.05717.98
5.5.330.0030.04320.26
5.5.320.0200.04320.32
5.5.310.0270.08320.34
5.5.300.0070.04317.95
5.5.290.0070.07717.99
5.5.280.0030.08720.80
5.5.270.0070.07720.67
5.5.260.0030.07720.86
5.5.250.0000.04320.66
5.5.240.0030.04020.04
5.4.450.0600.06019.63
5.4.440.0830.07019.58
5.4.430.0670.05319.45
5.4.420.0770.04319.40
5.4.410.0630.06719.20
5.4.400.0600.05319.16
5.4.390.0800.06719.26
5.4.380.0670.07319.01
5.4.370.0700.07019.25
5.4.360.0670.07719.12
5.4.350.0630.07319.00
5.4.340.0730.04719.30
5.4.320.0530.06019.13
5.4.310.0630.05019.25
5.4.300.0600.06319.25
5.4.290.0670.05319.01
5.4.280.0670.04719.20
5.4.270.0670.04318.98
5.4.260.0530.05318.97
5.4.250.0670.05319.00
5.4.240.0570.05319.22
5.4.230.0670.06019.24
5.4.220.0630.05719.25
5.4.210.0600.05318.99
5.4.200.0530.05719.14
5.4.190.0700.05319.21
5.4.180.0670.05019.11
5.4.170.0700.05019.29
5.4.160.0530.05019.27
5.4.150.0500.05318.99
5.4.140.0400.05716.41
5.4.130.0530.04316.40
5.4.120.0570.04316.43
5.4.110.0630.06316.61
5.4.100.0670.05316.19
5.4.90.0730.05016.59
5.4.80.0670.04316.61
5.4.70.0670.05316.58
5.4.60.0670.05316.17
5.4.50.0700.04016.54
5.4.40.0570.05316.55
5.4.30.0500.05016.48
5.4.20.0500.05716.20
5.4.10.0530.06016.57
5.4.00.0630.05715.96

preferences:
55.07 ms | 401 KiB | 5 Q