3v4l.org

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

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.70.0180.00316.50
8.3.60.0140.00616.87
8.3.50.0120.00521.31
8.3.40.0090.00618.61
8.3.30.0140.00318.84
8.3.20.0040.00420.13
8.3.10.0040.00423.54
8.3.00.0050.00319.79
8.2.190.0110.00716.91
8.2.180.0150.00018.29
8.2.170.0090.01222.96
8.2.160.0140.00420.21
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00417.63
8.2.110.0060.00622.12
8.2.100.0040.00718.04
8.2.90.0030.00619.22
8.2.80.0030.00517.97
8.2.70.0040.00417.63
8.2.60.0040.00417.80
8.2.50.0050.00318.07
8.2.40.0050.00321.12
8.2.30.0040.00420.51
8.2.20.0040.00417.76
8.2.10.0050.00318.06
8.2.00.0040.00418.05
8.1.280.0140.00725.92
8.1.270.0070.00723.77
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00322.54
8.1.230.0090.00317.42
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0090.00017.23
8.1.190.0030.00517.23
8.1.180.0060.00318.10
8.1.170.0030.00620.06
8.1.160.0070.00021.80
8.1.150.0070.00018.81
8.1.140.0090.00019.44
8.1.130.0000.00717.59
8.1.120.0070.00017.32
8.1.110.0070.00017.41
8.1.100.0050.00217.30
8.1.90.0000.00717.42
8.1.80.0080.00017.41
8.1.70.0070.00017.30
8.1.60.0000.00917.45
8.1.50.0040.00417.49
8.1.40.0060.00317.50
8.1.30.0040.00417.67
8.1.20.0040.00417.67
8.1.10.0040.00417.54
8.1.00.0080.00017.35
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0000.00818.27
8.0.270.0040.00417.11
8.0.260.0000.00617.27
8.0.250.0030.00316.94
8.0.240.0040.00416.96
8.0.230.0030.00516.93
8.0.220.0030.00316.96
8.0.210.0030.00316.86
8.0.200.0000.00616.95
8.0.190.0040.00416.93
8.0.180.0060.00316.91
8.0.170.0050.00316.89
8.0.160.0050.00316.79
8.0.150.0040.00416.81
8.0.140.0040.00416.80
8.0.130.0000.00613.32
8.0.120.0000.00916.75
8.0.110.0070.00016.87
8.0.100.0020.00516.93
8.0.90.0070.00016.94
8.0.80.0120.00916.93
8.0.70.0040.00416.77
8.0.60.0040.00416.90
8.0.50.0040.00416.90
8.0.30.0100.00617.18
8.0.20.0120.00917.40
8.0.10.0070.00016.99
8.0.00.0120.00716.82
7.4.330.0030.00315.09
7.4.320.0030.00316.50
7.4.300.0000.00816.50
7.4.290.0000.00716.46
7.4.280.0050.00516.58
7.4.270.0070.00016.56
7.4.260.0040.00416.62
7.4.250.0040.00416.57
7.4.240.0040.00416.51
7.4.230.0070.00016.51
7.4.220.0090.00916.46
7.4.210.0110.00416.55
7.4.200.0040.00416.69
7.4.160.0220.00016.48
7.4.150.0070.01017.40
7.4.140.0110.00717.86
7.4.130.0130.00616.45
7.4.120.0060.01216.56
7.4.110.0040.01516.50
7.4.100.0140.00316.58
7.4.90.0110.00616.39
7.4.80.0140.00319.39
7.4.70.0030.01416.48
7.4.60.0070.01316.47
7.4.50.0000.00816.65
7.4.40.0130.00316.60
7.4.30.0090.00916.59
7.4.00.0030.01015.10
7.3.330.0000.00513.22
7.3.320.0050.00013.36
7.3.310.0050.00316.39
7.3.300.0070.00016.32
7.3.290.0070.00716.36
7.3.280.0070.00816.36
7.3.270.0100.00617.40
7.3.260.0040.01416.56
7.3.240.0060.01516.48
7.3.230.0060.01116.53
7.3.210.0070.01016.56
7.3.200.0150.00616.32
7.3.190.0120.00416.47
7.3.180.0130.00316.59
7.3.170.0060.01016.61
7.3.160.0090.00616.55
7.2.330.0090.00916.69
7.2.320.0030.01916.77
7.2.310.0100.00716.51
7.2.300.0140.00416.65
7.2.290.0100.00716.71
7.2.60.0060.00916.80
7.2.00.0000.01319.38
7.1.200.0050.00515.67
7.1.100.0030.01018.26
7.1.70.0070.00717.25
7.1.60.0040.02219.50
7.1.50.0130.00916.91
7.1.00.0030.07722.29
7.0.200.0040.00416.75
7.0.60.0000.08720.04
7.0.50.0100.08017.89
7.0.40.0170.07720.30
7.0.30.0230.04320.23
7.0.20.0200.05720.12
7.0.10.0130.05020.05
7.0.00.0000.06320.23
5.6.280.0000.05021.03
5.6.210.0170.06020.75
5.6.200.0030.08318.16
5.6.190.0070.04320.67
5.6.180.0270.06020.48
5.6.170.0200.04720.51
5.6.160.0070.06320.57
5.6.150.0170.07318.17
5.6.140.0030.05318.25
5.6.130.0070.08018.11
5.6.120.0070.06321.05
5.6.110.0130.08020.98
5.6.100.0030.09321.00
5.6.90.0100.08021.01
5.6.80.0100.06320.53
5.5.350.0030.06020.45
5.5.340.0000.04317.96
5.5.330.0070.08720.28
5.5.320.3430.04320.40
5.5.310.0200.04020.25
5.5.300.0070.08318.08
5.5.290.0200.05318.07
5.5.280.0070.04720.85
5.5.270.0030.04720.75
5.5.260.0030.08720.75
5.5.250.0030.06020.80
5.5.240.0230.07020.16
5.4.450.0670.05719.16
5.4.440.0700.05319.58
5.4.430.0670.05719.42
5.4.420.0700.05019.60
5.4.410.0700.06719.03
5.4.400.0600.05019.01
5.4.390.0530.06019.28
5.4.380.0570.05718.86
5.4.370.0670.04719.13
5.4.360.0600.05318.84
5.4.350.0670.04318.86
5.4.340.0630.05019.03
5.4.320.0700.04319.36
5.4.310.0570.05719.07
5.4.300.0630.05019.11
5.4.290.0670.05019.00
5.4.280.0600.05318.83
5.4.270.0600.05019.08
5.4.260.0700.04019.24
5.4.250.0770.05319.24
5.4.240.0800.05719.00
5.4.230.0570.05718.82
5.4.220.0630.05019.05
5.4.210.0700.04719.11
5.4.200.0630.05319.23
5.4.190.0600.05319.25
5.4.180.0730.06019.00
5.4.170.0830.05718.92
5.4.160.0570.06019.06
5.4.150.0570.06019.09
5.4.140.0730.04016.45
5.4.130.0700.04316.60
5.4.120.0730.04716.57
5.4.110.0700.05316.32
5.4.100.0670.04316.64
5.4.90.0530.05316.63
5.4.80.0700.03716.66
5.4.70.0700.04316.45
5.4.60.0630.05016.49
5.4.50.0570.05016.55
5.4.40.0630.04316.47
5.4.30.0600.05716.59
5.4.20.0630.04316.58
5.4.10.0730.04716.54
5.4.00.0570.05015.79

preferences:
53.07 ms | 401 KiB | 5 Q