3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Student { private static $age = NULL; public function setAge($age) { Student::$age = $age; return $this; } } Student::setAge(20);

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.0110.01116.61
8.3.60.0090.01216.75
8.3.50.0110.01122.15
8.3.40.0180.00318.94
8.3.30.0150.00418.67
8.3.20.0110.00719.98
8.3.10.0070.01023.70
8.3.00.0060.00317.93
8.2.180.0080.00818.54
8.2.170.0100.01022.96
8.2.160.0090.00920.34
8.2.150.0090.00024.18
8.2.140.0200.00024.66
8.2.130.0040.01426.16
8.2.120.0040.00421.11
8.2.110.0000.00921.00
8.2.100.0040.00717.80
8.2.90.0030.00519.03
8.2.80.0040.00417.97
8.2.70.0090.00017.36
8.2.60.0060.00317.80
8.2.50.0040.00418.07
8.2.40.0070.00419.32
8.2.30.0000.00720.54
8.2.20.0040.00417.73
8.2.10.0040.00417.95
8.2.00.0070.00017.90
8.1.280.0150.00025.92
8.1.270.0060.01223.83
8.1.260.0110.00726.35
8.1.250.0140.00328.09
8.1.240.0040.00817.23
8.1.230.0080.00419.44
8.1.220.0050.00317.76
8.1.210.0040.00418.77
8.1.200.0090.00017.13
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0030.00618.34
8.1.160.0050.00221.86
8.1.150.0030.00518.80
8.1.140.0030.00519.43
8.1.130.0030.00317.49
8.1.120.0070.00017.33
8.1.110.0040.00417.36
8.1.100.0040.00417.21
8.1.90.0070.00017.27
8.1.80.0040.00417.32
8.1.70.0000.00717.39
8.1.60.0040.00417.47
8.1.50.0000.00817.33
8.1.40.0040.00417.41
8.1.30.0040.00417.48
8.1.20.0070.00017.54
8.1.10.0040.00417.50
8.1.00.0060.00317.39
8.0.300.0000.00818.77
8.0.290.0060.00316.63
8.0.280.0000.00818.25
8.0.270.0000.00717.11
8.0.260.0000.00617.14
8.0.250.0030.00616.92
8.0.240.0000.00716.90
8.0.230.0040.00416.95
8.0.220.0030.00316.91
8.0.210.0040.00416.79
8.0.200.0020.00916.86
8.0.190.0030.00516.84
8.0.180.0060.00316.86
8.0.170.0000.00716.82
8.0.160.0000.00716.80
8.0.150.0040.00416.90
8.0.140.0000.00716.91
8.0.130.0060.00013.30
8.0.120.0040.00416.85
8.0.110.0030.00516.73
8.0.100.0000.00716.74
8.0.90.0040.00416.93
8.0.80.0160.00616.77
8.0.70.0040.00416.95
8.0.60.0000.00716.90
8.0.50.0000.00716.75
8.0.30.0150.00517.02
8.0.20.0100.00917.40
8.0.10.0060.00316.76
8.0.00.0070.01016.77
7.4.330.0050.00215.08
7.4.320.0030.00316.57
7.4.300.0030.00316.50
7.4.290.0000.00716.61
7.4.280.0030.00516.52
7.4.270.0040.00416.58
7.4.260.0040.00416.41
7.4.250.0040.00416.43
7.4.240.0020.00516.42
7.4.230.0000.00716.69
7.4.220.0080.01616.53
7.4.210.0060.01016.41
7.4.200.0070.00016.24
7.4.160.0030.01316.50
7.4.150.0130.00617.40
7.4.140.0110.01317.86
7.4.130.0130.00816.41
7.4.120.0110.00616.45
7.4.110.0120.00616.45
7.4.100.0070.01616.33
7.4.90.0070.01016.38
7.4.80.0100.01019.39
7.4.70.0100.01016.55
7.4.60.0070.01016.41
7.4.50.0040.00416.53
7.4.40.0090.00916.39
7.4.30.0130.00716.57
7.4.00.0100.00315.10
7.3.330.0000.00513.28
7.3.320.0050.00013.21
7.3.310.0000.00716.41
7.3.300.0030.00316.29
7.3.290.0070.00816.46
7.3.280.0040.01116.41
7.3.270.0110.00617.40
7.3.260.0100.00716.35
7.3.240.0110.00616.41
7.3.230.0040.01516.63
7.3.210.0140.00316.35
7.3.200.0080.00816.28
7.3.190.0100.01316.65
7.3.180.0070.01016.63
7.3.170.0090.00816.33
7.3.160.0060.00916.48
7.2.330.0120.00616.43
7.2.320.0100.00716.74
7.2.310.0090.00916.59
7.2.300.0080.00816.63
7.2.290.0100.00716.68
7.2.60.0070.00716.73
7.2.00.0000.01219.49
7.1.200.0090.00615.48
7.1.100.0070.00718.01
7.1.70.0100.00316.80
7.1.60.0130.01019.11
7.1.50.0100.00716.65
7.1.00.0000.08022.30
7.0.200.0530.01014.78
7.0.60.0030.04319.93
7.0.50.0030.04317.85
7.0.40.0070.07320.09
7.0.30.0300.03720.16
7.0.20.0330.07020.02
7.0.10.0270.07720.22
7.0.00.0000.05320.16
5.6.280.0030.03321.10
5.6.210.0070.08020.55
5.6.200.0070.09018.24
5.6.190.0000.09020.57
5.6.180.0200.05320.61
5.6.170.0400.07720.55
5.6.160.0130.08320.41
5.6.150.0070.05018.28
5.6.140.0030.05718.17
5.6.130.0070.06718.16
5.6.120.0030.04320.99
5.6.110.0030.04321.01
5.6.100.0030.09021.11
5.6.90.0030.07720.99
5.6.80.0030.06720.31
5.6.70.0170.04720.52
5.5.350.0370.07720.45
5.5.340.0000.04318.07
5.5.330.0100.04320.23
5.5.320.0000.06020.28
5.5.310.0230.05720.32
5.5.300.0070.03718.08
5.5.290.0100.06717.95
5.5.280.0100.08320.89
5.5.270.0100.06320.88
5.5.260.0130.05320.84
5.5.250.0070.08020.69
5.5.240.0130.06720.19
5.4.450.0200.05719.52
5.4.440.0230.05319.21
5.4.430.0200.05019.39
5.4.420.0300.04719.21
5.4.410.0200.05019.23
5.4.400.0200.05319.26
5.4.390.0170.05719.10
5.4.380.0230.05319.00
5.4.370.0270.05019.04
5.4.360.0270.06718.89
5.4.350.0130.05719.18
5.4.340.0230.05018.73
5.4.320.0230.04719.03
5.4.310.0300.04018.68
5.4.300.0130.06019.01
5.4.290.0300.04319.27
5.4.280.0330.06318.93
5.4.270.0270.07319.27
5.4.260.0200.04718.75
5.4.250.0130.05718.86
5.4.240.0130.05718.99
5.4.230.0330.06319.32
5.4.220.0170.05719.06
5.4.210.0170.05318.75
5.4.200.0100.06719.27
5.4.190.0130.05718.93
5.4.180.0130.05318.88
5.4.170.0330.04318.75
5.4.160.0270.05319.07
5.4.150.0170.05718.85
5.4.140.0230.05016.43
5.4.130.0300.04016.43
5.4.120.0230.04316.36
5.4.110.0170.05316.58
5.4.100.0230.04716.60
5.4.90.0130.05316.16
5.4.80.0100.05316.46
5.4.70.0200.04316.37
5.4.60.0170.05716.23
5.4.50.0130.05016.36
5.4.40.0130.05316.37
5.4.30.0170.05316.20
5.4.20.0300.04716.55
5.4.10.0170.05016.51
5.4.00.0130.05315.77

preferences:
41.52 ms | 401 KiB | 5 Q