3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class A { static $what; static function change_what($where) { self::$what = $where; } static function show() { echo self::$what . PHP_EOL; } } class B extends A { } class C extends A { } B::change_what("b"); C::change_what("c"); B::show(); C::show();

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.0090.00616.63
8.3.50.0120.01021.99
8.3.40.0070.00718.54
8.3.30.0090.00618.93
8.3.20.0080.00020.09
8.3.10.0040.00421.77
8.3.00.0060.00320.90
8.2.180.0090.00618.23
8.2.170.0080.00622.96
8.2.160.0140.00022.26
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0100.00017.91
8.2.110.0030.00721.10
8.2.100.0090.00317.63
8.2.90.0030.00619.13
8.2.80.0000.00917.97
8.2.70.0000.01017.63
8.2.60.0040.00417.80
8.2.50.0030.00618.07
8.2.40.0000.00718.15
8.2.30.0040.00418.00
8.2.20.0070.00017.70
8.2.10.0000.00818.02
8.2.00.0000.00817.68
8.1.280.0140.00425.92
8.1.270.0090.00020.50
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0000.00923.88
8.1.230.0040.00718.82
8.1.220.0030.00617.74
8.1.210.0030.00518.77
8.1.200.0030.00617.36
8.1.190.0080.00017.22
8.1.180.0040.00418.10
8.1.170.0000.00820.38
8.1.160.0040.00422.04
8.1.150.0030.00518.95
8.1.140.0000.00717.34
8.1.130.0070.00017.84
8.1.120.0030.00417.48
8.1.110.0050.00217.39
8.1.100.0020.00517.46
8.1.90.0030.00317.38
8.1.80.0050.00317.37
8.1.70.0060.00317.36
8.1.60.0080.00017.56
8.1.50.0030.00517.60
8.1.40.0000.00817.54
8.1.30.0040.00417.60
8.1.20.0000.00817.62
8.1.10.0050.00217.45
8.1.00.0040.00417.57
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0000.00718.38
8.0.270.0000.00717.30
8.0.260.0030.00317.18
8.0.250.0060.00016.83
8.0.240.0050.00216.84
8.0.230.0000.00816.91
8.0.220.0070.00016.97
8.0.210.0000.00816.82
8.0.200.0030.00316.94
8.0.190.0040.00416.96
8.0.180.0060.00616.83
8.0.170.0080.00016.84
8.0.160.0030.00616.88
8.0.150.0000.00716.92
8.0.140.0000.00716.89
8.0.130.0050.00013.22
8.0.120.0040.00416.84
8.0.110.0040.00416.92
8.0.100.0070.00016.86
8.0.90.0000.00717.02
8.0.80.0030.01816.89
8.0.70.0040.00416.84
8.0.60.0070.00016.75
8.0.50.0000.00816.88
8.0.30.0140.00616.92
8.0.20.0070.01117.40
8.0.10.0070.00016.79
8.0.00.0090.00816.83
7.4.330.0030.00315.03
7.4.320.0000.00616.53
7.4.300.0000.00616.64
7.4.290.0060.00316.66
7.4.280.0040.00816.51
7.4.270.0030.00316.38
7.4.260.0000.00816.56
7.4.250.0070.00016.59
7.4.240.0050.00216.57
7.4.230.0000.00716.45
7.4.220.0090.01216.52
7.4.210.0060.00916.65
7.4.200.0070.00016.53
7.4.160.0070.00716.43
7.4.150.0250.02217.40
7.4.140.0080.01017.86
7.4.130.0050.01416.44
7.4.120.0050.01216.51
7.4.110.0060.01316.42
7.4.100.0130.00916.60
7.4.90.0100.00616.64
7.4.80.0120.00619.39
7.4.70.0060.00916.50
7.4.60.0130.00316.52
7.4.50.0040.00416.44
7.4.40.0120.00416.53
7.4.30.0060.01316.43
7.4.00.0070.00715.00
7.3.330.0040.00413.29
7.3.320.0000.00513.30
7.3.310.0030.00316.40
7.3.300.0030.00316.23
7.3.290.0090.00716.38
7.3.280.0110.00816.38
7.3.270.0100.00717.40
7.3.260.0120.00616.36
7.3.250.0140.00816.56
7.3.240.0100.00716.36
7.3.230.0070.01016.60
7.3.210.0080.00816.47
7.3.200.0100.00619.39
7.3.190.0120.00916.49
7.3.180.0070.00816.68
7.3.170.0090.00916.65
7.3.160.0060.01016.38
7.3.10.0110.00816.31
7.3.00.0060.01516.35
7.2.330.0140.00316.79
7.2.320.0070.01016.71
7.2.310.0130.00316.75
7.2.300.0000.01616.43
7.2.290.0190.00016.78
7.2.130.0120.00616.93
7.2.120.0180.00316.17
7.2.110.0170.00316.60
7.2.100.0170.00716.50
7.2.90.0040.01416.76
7.2.80.0060.00916.73
7.2.70.0100.00716.68
7.2.60.0100.00716.62
7.2.50.0100.01016.66
7.2.40.0070.00716.16
7.2.30.0130.00416.33
7.2.20.0070.01316.20
7.2.10.0070.01016.45
7.2.00.0050.01117.85
7.1.250.0000.00915.79
7.1.100.0000.01118.15
7.1.70.0000.00916.71
7.1.60.0030.02219.46
7.1.50.0070.01017.00
7.1.00.0030.07722.51
7.0.200.0660.00314.80
7.0.140.0000.07722.12
7.0.60.0130.06319.92
7.0.50.0030.07317.94
7.0.40.0030.09020.23
7.0.30.0370.03020.34
7.0.20.0230.06720.22
7.0.10.0070.04320.07
7.0.00.0030.06020.07
5.6.280.0030.07321.04
5.6.210.0000.07320.63
5.6.200.0000.08718.12
5.6.190.0100.08720.47
5.6.180.0500.07320.66
5.6.170.0200.08020.34
5.6.160.0030.08720.54
5.6.150.0130.03018.19
5.6.140.0100.07318.28
5.6.130.0070.04318.20
5.6.120.0070.04021.04
5.6.110.0070.06321.14
5.6.100.0070.08021.00
5.6.90.0130.07021.03
5.6.80.0070.08020.42
5.5.350.0270.08020.41
5.5.340.0170.07317.99
5.5.330.0130.08720.43
5.5.320.0330.07020.20
5.5.310.0370.07020.30
5.5.300.0030.07017.99
5.5.290.0000.04717.95
5.5.280.0070.04320.85
5.5.270.0100.05020.95
5.5.260.0130.04320.80
5.5.250.0130.08320.70
5.5.240.0000.08020.38
5.4.450.0770.06319.31
5.4.440.0830.05319.61
5.4.430.0170.07319.52
5.4.420.0100.06019.54
5.4.410.0100.07019.58
5.4.400.0330.04718.90
5.4.390.0300.05318.84
5.4.380.0330.07018.61
5.4.370.0200.06018.84
5.4.360.0370.04718.59
5.4.350.0270.05718.45
5.4.340.0270.05018.61
5.4.320.0270.05018.56
5.4.310.0300.04718.78
5.4.300.0300.06018.76
5.4.290.0230.05718.73
5.4.280.0270.05718.74
5.4.270.0200.05718.56
5.4.260.0230.05318.79
5.4.250.0330.04718.69
5.4.240.0270.06018.85
5.4.230.0330.05018.69
5.4.220.0230.06718.82
5.4.210.0270.06018.72
5.4.200.0270.05016.53
5.4.190.0370.04018.73
5.4.180.0300.05018.73
5.4.170.0230.06018.60
5.4.160.0300.07718.78
5.4.150.0330.06718.81
5.4.140.0170.06316.29
5.4.130.0200.05316.23
5.4.120.0200.06016.37
5.4.110.0270.04716.48
5.4.100.0330.04316.29
5.4.90.0330.07016.36
5.4.80.0270.05016.18
5.4.70.0270.05716.33
5.4.60.0230.06016.40
5.4.50.0330.04716.18
5.4.40.0330.07316.13
5.4.30.0430.05716.40
5.4.20.0300.08016.38
5.4.10.0330.06016.27
5.4.00.0570.05715.60
5.3.290.0430.06314.65
5.3.280.0430.06314.70
5.3.270.0400.07014.61
5.3.260.0400.07014.63
5.3.250.0530.07714.63
5.3.240.0300.07014.64
5.3.230.0330.05314.62
5.3.220.0300.06014.57
5.3.210.0170.07314.69
5.3.200.0470.05014.75
5.3.190.0230.06714.55
5.3.180.0400.04714.66
5.3.170.0330.06714.66
5.3.160.0300.05014.59
5.3.150.0230.05714.73
5.3.140.0300.05014.73
5.3.130.0300.05714.55
5.3.120.0270.06014.60
5.3.110.0200.06014.73
5.3.100.0200.06014.15
5.3.90.0330.04714.15
5.3.80.0370.04314.07
5.3.70.0330.04714.23
5.3.60.0230.05314.06
5.3.50.0230.05313.96
5.3.40.0230.05313.96
5.3.30.0270.05014.12
5.3.20.0200.06013.68
5.3.10.0300.05313.76
5.3.00.0230.06313.68
5.2.170.0170.05011.19
5.2.160.0230.04711.21
5.2.150.0270.05711.17
5.2.140.0200.04311.17
5.2.130.0230.04311.11
5.2.120.0270.04011.16
5.2.110.0270.03311.14
5.2.100.0270.04711.21
5.2.90.0170.04311.14
5.2.80.0230.04311.17
5.2.70.0230.04311.15
5.2.60.0300.04011.12
5.2.50.0300.04011.01
5.2.40.0200.03711.12
5.2.30.0200.04010.98
5.2.20.0230.04011.02
5.2.10.0200.04010.91
5.2.00.0230.03710.76
5.1.60.0170.04010.07
5.1.50.0130.04010.04
5.1.40.0100.04310.04
5.1.30.0200.03710.52
5.1.20.0230.03010.38
5.1.10.0130.04010.12
5.1.00.0130.04010.27
5.0.50.0100.0308.59
5.0.40.0100.0338.45
5.0.30.0170.0378.31
5.0.20.0130.0238.22
5.0.10.0100.0308.21
5.0.00.0100.0438.27
4.4.90.0130.0175.90
4.4.80.0100.0205.90
4.4.70.0070.0275.91
4.4.60.0130.0275.90
4.4.50.0130.0205.90
4.4.40.0200.0375.94
4.4.30.0230.0135.90
4.4.20.0130.0235.95
4.4.10.0100.0235.96
4.4.00.0100.0335.90
4.3.110.0030.0275.90
4.3.100.0100.0205.90
4.3.90.0100.0205.90
4.3.80.0100.0305.90
4.3.70.0130.0235.90
4.3.60.0030.0235.90
4.3.50.0100.0205.90
4.3.40.0070.0335.90
4.3.30.0100.0175.90
4.3.20.0030.0235.90
4.3.10.0030.0235.90
4.3.00.0130.0207.13

preferences:
47.37 ms | 401 KiB | 5 Q