3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myModel { public static function all() { return 1; } } class myClass { public $models; public $results; public function __construct() { $this->models->myModel = new myModel; $this->results = $this->models::all(); } } $result = (new myClass)->results; echo $result;

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.00716.49
8.3.50.0130.00521.14
8.3.40.0030.01419.09
8.3.30.0030.01618.83
8.3.20.0080.00020.34
8.3.10.0030.00623.44
8.3.00.0040.00419.79
8.2.180.0080.00818.54
8.2.170.0140.00722.96
8.2.160.0030.01020.48
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00617.75
8.2.110.0060.00320.98
8.2.100.0120.00017.72
8.2.90.0000.00819.16
8.2.80.0040.00417.97
8.2.70.0090.00017.63
8.2.60.0080.00417.80
8.2.50.0040.00418.07
8.2.40.0060.00619.11
8.2.30.0000.00820.68
8.2.20.0000.00717.61
8.2.10.0000.00818.00
8.2.00.0070.00017.91
8.1.280.0160.00325.92
8.1.270.0080.00023.77
8.1.260.0050.00226.35
8.1.250.0000.00728.09
8.1.240.0030.00621.31
8.1.230.0040.00817.45
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0040.00717.23
8.1.190.0000.00917.10
8.1.180.0000.00818.10
8.1.170.0060.00320.29
8.1.160.0040.00421.95
8.1.150.0040.00418.77
8.1.140.0080.00019.43
8.1.130.0040.00417.49
8.1.120.0070.00017.40
8.1.110.0070.00017.39
8.1.100.0040.00417.42
8.1.90.0030.00317.38
8.1.80.0080.00017.36
8.1.70.0030.00317.38
8.1.60.0000.00817.55
8.1.50.0000.00817.41
8.1.40.0040.00417.52
8.1.30.0000.00817.55
8.1.20.0000.00817.61
8.1.10.0000.00717.51
8.1.00.0080.00017.53
8.0.300.0050.00218.77
8.0.290.0040.00416.58
8.0.280.0000.00718.30
8.0.270.0040.00417.12
8.0.260.0030.00317.08
8.0.250.0040.00416.87
8.0.240.0000.00816.95
8.0.230.0030.00316.94
8.0.220.0030.00516.93
8.0.210.0070.00016.96
8.0.200.0000.00616.83
8.0.190.0040.00416.97
8.0.180.0040.00416.91
8.0.170.0000.00816.88
8.0.160.0040.00416.90
8.0.150.0040.00416.82
8.0.140.0030.00516.82
8.0.130.0060.00013.34
8.0.120.0000.00716.78
8.0.110.0080.00016.86
8.0.100.0040.00416.84
8.0.90.0030.00316.85
8.0.80.0070.01516.89
8.0.70.0050.00216.78
8.0.60.0000.00716.95
8.0.50.0000.00816.93
8.0.30.0140.00317.15
8.0.20.0080.01017.40
8.0.10.0050.00317.04
8.0.00.0100.00816.91
7.4.330.0000.00515.08
7.4.320.0070.00016.54
7.4.300.0030.00616.50
7.4.290.0070.00016.61
7.4.280.0070.00416.50
7.4.270.0060.00016.61
7.4.260.0070.00016.49
7.4.250.0000.00716.50
7.4.240.0050.00216.48
7.4.230.0000.00716.48
7.4.220.0060.01316.45
7.4.210.0070.01116.50
7.4.200.0040.00416.45
7.4.160.0000.01516.60
7.4.150.0140.00417.40
7.4.140.0140.00617.86
7.4.130.0130.01316.45
7.4.120.0120.00916.57
7.4.110.0070.01116.62
7.4.100.0150.00616.49
7.4.90.0130.00616.48
7.4.80.0130.00319.39
7.4.70.0070.01116.54
7.4.60.0070.01516.61
7.4.50.0050.00316.48
7.4.40.0160.00016.69
7.4.30.0110.00716.29
7.4.00.0000.01515.10
7.3.330.0000.00513.31
7.3.320.0030.00313.47
7.3.310.0000.00716.32
7.3.300.0030.00316.22
7.3.290.0050.01316.36
7.3.280.0080.01016.40
7.3.270.0100.00617.40
7.3.260.0120.00616.32
7.3.240.0110.01016.45
7.3.230.0140.00316.43
7.3.210.0060.01216.32
7.3.200.0070.01016.51
7.3.190.0090.00616.54
7.3.180.0060.01116.38
7.3.170.0110.00916.39
7.3.160.0130.01016.38
7.2.330.0040.01516.69
7.2.320.0070.01116.51
7.2.310.0070.01016.68
7.2.300.0060.01316.69
7.2.290.0070.01516.69
7.2.60.0100.00616.65
7.2.00.0030.01019.05
7.1.200.0000.01615.60
7.1.100.0000.01218.08
7.1.70.0090.00617.14
7.1.60.0060.01919.50
7.1.50.0100.00716.86
7.1.00.0030.07722.28
7.0.200.0050.00516.81
7.0.100.0100.06720.03
7.0.90.0070.05019.90
7.0.80.0170.07319.97
7.0.70.0100.08319.90
7.0.60.0200.06020.07
7.0.50.0070.04020.27
7.0.40.0070.08020.03
7.0.30.0100.07320.18
7.0.20.0100.08020.05
7.0.10.0030.08319.97
7.0.00.0030.05720.08
5.6.280.0030.03721.04
5.6.250.0100.07320.73
5.6.240.0130.09020.71
5.6.230.0070.04720.70
5.6.220.0130.07320.75
5.6.210.0100.08020.58
5.6.200.0100.07321.06
5.6.190.0100.07321.05
5.6.180.0170.07321.09
5.6.170.0100.07721.04
5.6.160.0030.08321.07
5.6.150.0100.05321.11
5.6.140.0170.06321.04
5.6.130.0070.07320.97
5.6.120.0130.07721.11
5.6.110.0130.07321.06
5.6.100.0130.07721.05
5.6.90.0030.08321.13
5.6.80.0170.05720.41
5.6.70.0170.07020.39
5.6.60.0030.08720.45
5.6.50.0070.07720.40
5.6.40.0030.07320.54
5.6.30.0030.07020.33
5.6.20.0100.07320.47
5.6.10.0170.07020.44
5.6.00.0070.04720.32
5.5.380.0030.09320.37
5.5.370.0100.08020.43
5.5.360.0070.08720.35
5.5.350.0170.07020.47
5.5.340.0130.03720.81
5.5.330.0070.08020.94
5.5.320.0130.06320.90
5.5.310.0130.07320.81
5.5.300.0100.07720.64
5.5.290.0130.06720.92
5.5.280.0100.07720.80
5.5.270.0070.08320.78
5.5.260.0070.08320.88
5.5.250.0030.08320.69
5.5.240.0100.07320.11
5.5.230.0100.07720.16
5.5.220.0100.08020.23
5.5.210.0030.08720.19
5.5.200.0070.07720.25
5.5.190.0030.06719.98
5.5.180.0070.07020.16
5.5.160.0100.07720.29
5.5.150.0030.08020.26
5.5.140.0100.06720.09
5.5.130.0030.04720.25
5.5.120.0130.07320.13
5.5.110.0100.07020.21
5.5.100.0070.05319.93
5.5.90.0030.06320.08
5.5.80.0100.08020.18
5.5.70.0100.06020.14
5.5.60.0130.07020.16
5.5.50.0030.05020.10
5.5.40.0030.06720.06
5.5.30.0100.05720.00
5.5.20.0070.06720.03
5.5.10.0000.07320.09
5.5.00.0070.08720.11
5.4.450.0200.06319.18
5.4.440.0100.07319.49
5.4.430.0070.04319.21
5.4.420.0030.08019.49
5.4.410.0100.04319.34
5.4.400.0070.06718.85
5.4.390.0100.07019.23
5.4.380.0130.06719.05
5.4.370.0070.07719.11
5.4.360.0070.06318.95
5.4.350.0070.07719.12
5.4.340.0130.05019.10
5.4.320.0100.07019.23
5.4.310.0000.07319.03
5.4.300.0100.03719.03
5.4.290.0100.07718.88
5.4.280.0070.04719.18
5.4.270.0070.07018.93
5.4.260.0100.04319.03
5.4.250.0030.05319.13
5.4.240.0070.04319.13
5.4.230.0100.06719.04
5.4.220.0100.05719.16
5.4.210.0200.05719.03
5.4.200.0100.06718.87
5.4.190.0100.06319.20
5.4.180.0030.07719.12
5.4.170.0100.06719.04
5.4.160.0030.04719.21
5.4.150.0170.06319.11
5.4.140.0070.03716.45
5.4.130.0130.04716.34
5.4.120.0030.06716.34
5.4.110.0070.07016.57
5.4.100.0070.06016.42
5.4.90.0030.06016.49
5.4.80.0130.03316.41
5.4.70.0000.04716.56
5.4.60.0070.05716.46
5.4.50.0070.07316.48
5.4.40.0100.06316.52
5.4.30.0200.06016.45
5.4.20.0100.04716.29
5.4.10.0070.06716.49
5.4.00.0100.07015.73

preferences:
56.21 ms | 401 KiB | 5 Q