3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { public function get() { echo 'C'; static::get(); } public function save() { self::get(); } } class B extends C { public function get() { echo 'B'; static::get(); } } class A extends B { public function get() { echo 'A'; } } $x = new A(); $x->save();

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.40.0110.00418.79
8.3.30.0000.01519.00
8.3.20.0040.00420.21
8.3.10.0080.00021.82
8.3.00.0080.00019.13
8.2.170.0100.00722.96
8.2.160.0100.00720.57
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00819.66
8.2.110.0060.00319.21
8.2.100.0040.00717.63
8.2.90.0070.00019.03
8.2.80.0090.00017.97
8.2.70.0030.00617.50
8.2.60.0030.00617.93
8.2.50.0040.00418.07
8.2.40.0040.00419.88
8.2.30.0040.00417.99
8.2.20.0000.00817.61
8.2.10.0090.00017.98
8.2.00.0000.00717.55
8.1.270.0050.00318.69
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0080.00423.82
8.1.230.0080.00417.42
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0000.01317.13
8.1.190.0030.00617.23
8.1.180.0070.00018.10
8.1.170.0040.00420.29
8.1.160.0040.00421.95
8.1.150.0000.00818.87
8.1.140.0030.00517.26
8.1.130.0030.00317.69
8.1.120.0000.00717.39
8.1.110.0050.00317.31
8.1.100.0000.00717.40
8.1.90.0070.00017.37
8.1.80.0050.00317.38
8.1.70.0030.00317.39
8.1.60.0000.01317.59
8.1.50.0040.00417.58
8.1.40.0040.00417.55
8.1.30.0030.00517.67
8.1.20.0040.00417.58
8.1.10.0040.00417.57
8.1.00.0040.00417.40
8.0.300.0000.00818.77
8.0.290.0070.00016.63
8.0.280.0030.00318.43
8.0.270.0040.00417.30
8.0.260.0040.00417.38
8.0.250.0030.00316.92
8.0.240.0000.00816.91
8.0.230.0110.00016.89
8.0.220.0000.00716.70
8.0.210.0040.00416.87
8.0.200.0090.00016.62
8.0.190.0040.00416.91
8.0.180.0040.00416.84
8.0.170.0030.00316.86
8.0.160.0000.00816.87
8.0.150.0040.00416.67
8.0.140.0030.00316.77
8.0.130.0030.00313.32
8.0.120.0070.00016.79
8.0.110.0000.00816.85
8.0.100.0040.00416.65
8.0.90.0050.00316.86
8.0.80.0130.00916.82
8.0.70.0070.00016.84
8.0.60.0070.00016.79
8.0.50.0030.00516.65
8.0.30.0110.00817.30
8.0.20.0110.01117.40
8.0.10.0050.00216.95
8.0.00.0130.00416.65
7.4.330.0000.00515.09
7.4.320.0060.00016.53
7.4.300.0000.00616.39
7.4.290.0000.00716.50
7.4.280.0000.00816.48
7.4.270.0000.00716.57
7.4.260.0070.00016.61
7.4.250.0050.00316.42
7.4.240.0060.00216.50
7.4.230.0070.00016.62
7.4.220.0030.01716.62
7.4.210.0070.00716.58
7.4.200.0000.00816.50
7.4.160.0090.00616.45
7.4.150.0030.01517.40
7.4.140.0100.01017.86
7.4.130.0130.00516.46
7.4.120.0100.00916.53
7.4.110.0130.00916.64
7.4.100.0150.00816.66
7.4.90.0100.00616.45
7.4.80.0080.01219.39
7.4.70.0100.00716.39
7.4.60.0110.00916.38
7.4.50.0000.00716.52
7.4.40.0100.00616.66
7.4.30.0070.01416.42
7.4.10.0140.00014.89
7.4.00.0030.01214.92
7.3.330.0000.00713.13
7.3.320.0040.00913.10
7.3.310.0040.00416.27
7.3.300.0050.00216.09
7.3.290.0030.00316.24
7.3.280.0100.00716.24
7.3.270.0160.00717.40
7.3.260.0110.00716.52
7.3.250.0080.00816.38
7.3.240.0130.01016.53
7.3.230.0040.01816.39
7.3.210.0100.00616.43
7.3.200.0030.01719.39
7.3.190.0100.00716.51
7.3.180.0000.01516.54
7.3.170.0130.01016.33
7.3.160.0160.00616.45
7.3.130.0120.00614.84
7.3.120.0050.00714.72
7.3.110.0070.00714.63
7.3.100.0030.01014.66
7.3.90.0100.00314.85
7.3.80.0030.00914.82
7.3.70.0080.00514.63
7.3.60.0060.00914.43
7.3.50.0000.01314.49
7.3.40.0070.00314.70
7.3.30.0160.00014.87
7.3.20.0070.01016.52
7.3.10.0070.00716.28
7.3.00.0000.01416.41
7.2.330.0090.00916.56
7.2.320.0100.00616.46
7.2.310.0060.01616.41
7.2.300.0100.00716.53
7.2.290.0090.00816.52
7.2.260.0080.01115.23
7.2.250.0070.01115.03
7.2.240.0110.00315.00
7.2.230.0130.00314.91
7.2.220.0030.01715.00
7.2.210.0060.00915.02
7.2.200.0000.01814.93
7.2.190.0120.00314.61
7.2.180.0040.01515.06
7.2.170.0040.00714.87
7.2.160.0000.01314.95
7.2.150.0110.00316.86
7.2.140.0100.00316.92
7.2.130.0040.01116.76
7.2.120.0090.00916.59
7.2.110.0080.00816.95
7.2.100.0070.00716.93
7.2.90.0070.00716.65
7.2.80.0070.00716.76
7.2.70.0040.01116.45
7.2.60.0080.00416.52
7.2.50.0030.00616.96
7.2.40.0070.00316.98
7.2.30.0070.00716.82
7.2.20.0060.00616.82
7.2.10.0060.00316.89
7.2.00.0070.00618.04
7.1.330.0070.00715.74
7.1.320.0100.00715.51
7.1.310.0030.00615.66
7.1.300.0100.00315.48
7.1.290.0070.01115.63
7.1.280.0090.00415.64
7.1.270.0030.01315.57
7.1.260.0040.01115.46
7.1.250.0070.00715.64
7.1.240.0000.01115.49
7.1.230.0100.00715.41
7.1.220.0070.00715.71
7.1.210.0030.01015.66
7.1.200.0100.00315.58
7.1.190.0030.00715.63
7.1.180.0080.00315.66
7.1.170.0070.00315.58
7.1.160.0000.01415.61
7.1.150.0030.00615.55
7.1.140.0050.00315.69
7.1.130.0040.01115.56
7.1.120.0090.00615.35
7.1.110.0070.00315.66
7.1.100.0040.01016.80
7.1.90.0070.00715.64
7.1.80.0060.00615.45
7.1.70.0080.00216.29
7.1.60.0090.00917.54
7.1.50.0000.01516.19
7.1.40.0000.01415.58
7.1.30.0030.00915.47
7.1.20.0100.00315.72
7.1.10.0060.00615.35
7.1.00.0030.04218.92
7.0.330.0040.00415.07
7.0.320.0080.00415.28
7.0.310.0040.00415.02
7.0.300.0030.00615.31
7.0.290.0000.01015.00
7.0.280.0060.00615.45
7.0.270.0030.00715.19
7.0.260.0100.00015.40
7.0.250.0060.00615.25
7.0.240.0000.01515.32
7.0.230.0060.00615.26
7.0.220.0040.01115.31
7.0.210.0100.00315.39
7.0.200.0040.00715.80
7.0.190.0040.00715.39
7.0.180.0030.00615.09
7.0.170.0120.00315.31
7.0.160.0070.00715.05
7.0.150.0140.00415.32
7.0.140.0050.04318.72
7.0.130.0040.01115.24
7.0.120.0000.01115.29
7.0.110.0070.02017.48
7.0.100.0030.02317.63
7.0.90.0060.03117.59
7.0.80.0050.02417.58
7.0.70.0080.02317.65
7.0.60.0050.02517.68
7.0.50.0050.04817.68
7.0.40.0050.02716.55
7.0.30.0020.02816.51
7.0.20.0030.02716.52
7.0.10.0060.04016.48
7.0.00.0080.02216.41
5.6.400.0120.00314.37
5.6.390.0060.00614.42
5.6.380.0000.00814.18
5.6.370.0000.00814.35
5.6.360.0030.01014.38
5.6.350.0040.00814.59
5.6.340.0030.00714.46
5.6.330.0030.01014.20
5.6.320.0040.00814.36
5.6.310.0040.00414.19
5.6.300.0050.00514.37
5.6.290.0120.00613.98
5.6.280.0050.04217.52
5.6.270.0100.00713.98
5.6.260.0080.02817.47
5.6.250.0070.02517.45
5.6.240.0070.02217.52
5.6.230.0030.04817.46
5.6.220.0100.01717.42
5.6.210.0040.04017.34
5.6.200.0080.03517.39
5.6.190.0030.02317.35
5.6.180.0070.03017.58
5.6.170.0120.03317.54
5.6.160.0050.02517.41
5.6.150.0050.02217.35
5.6.140.0100.04817.50
5.6.130.0070.03817.39
5.6.120.0070.04117.60
5.6.110.0070.02317.42
5.6.100.0100.03217.44
5.6.90.0070.02517.26
5.6.80.0050.02517.03
5.6.70.0040.03717.00
5.6.60.0050.03217.21
5.6.50.0050.03316.95
5.6.40.0050.03117.01
5.6.30.0050.02717.04
5.6.20.0000.02817.07
5.6.10.0090.01817.05
5.6.00.0050.02416.98
5.5.380.0040.02215.95
5.5.370.0030.02416.08
5.5.360.0080.03316.01
5.5.350.0030.04615.97
5.5.340.0050.02416.06
5.5.330.0030.02316.00
5.5.320.0080.02216.18
5.5.310.0050.02216.15
5.5.300.0070.04216.06
5.5.290.0050.02216.26
5.5.280.0000.03516.34
5.5.270.0000.03616.14
5.5.260.0070.03616.23
5.5.250.0050.02316.12
5.5.240.0020.02715.76
5.5.230.0050.03915.93
5.5.220.0050.02515.93
5.5.210.0100.02015.83
5.5.200.0080.04315.79
5.5.190.0050.04015.89
5.5.180.0050.02815.67
5.5.170.0070.01114.03
5.5.160.0020.04415.78
5.5.150.0060.02315.76
5.5.140.0050.03415.83
5.5.130.0090.02615.72
5.5.120.0090.03415.73
5.5.110.0040.03515.79
5.5.100.0040.02515.67
5.5.90.0080.03115.79
5.5.80.0060.03015.69
5.5.70.0080.02015.87
5.5.60.0060.02115.51
5.5.50.0020.02715.72
5.5.40.0080.01815.67
5.5.30.0100.03015.84
5.5.20.0020.02815.77
5.5.10.0060.02115.64
5.5.00.0050.02215.60
5.4.450.0090.01815.17
5.4.440.0050.02215.28
5.4.430.0100.02615.23
5.4.420.0050.03215.30
5.4.410.0030.04115.13
5.4.400.0030.02714.86
5.4.390.0080.03714.85
5.4.380.0060.01814.86
5.4.370.0050.03515.12
5.4.360.0060.02515.11
5.4.350.0030.02514.88
5.4.340.0030.02515.00
5.4.330.0040.01110.75
5.4.320.0090.02814.90
5.4.310.0060.02315.03
5.4.300.0060.02815.00
5.4.290.0030.03214.87
5.4.280.0050.02714.82
5.4.270.0030.03015.17
5.4.260.0040.02515.19
5.4.250.0030.02514.99
5.4.240.0030.03314.99
5.4.230.0090.02315.10
5.4.220.0030.02515.10
5.4.210.0030.02714.97
5.4.200.0020.03314.83
5.4.190.0040.02015.02
5.4.180.0090.03214.88
5.4.170.0030.02915.04
5.4.160.0050.02315.06
5.4.150.0020.02215.07
5.4.140.0070.02213.73
5.4.130.0010.03013.69
5.4.120.0050.03513.79
5.4.110.0020.02413.81
5.4.100.0060.02113.74
5.4.90.0040.02113.62
5.4.80.0070.02513.85
5.4.70.0000.02113.62
5.4.60.0030.02313.87
5.4.50.0030.02413.71
5.4.40.0080.02513.76
5.4.30.0080.03113.66
5.4.20.0040.02413.73
5.4.10.0030.04413.53
5.4.00.0050.02313.46
5.3.290.0070.05714.80
5.3.280.0030.04714.63
5.3.270.0070.03714.63
5.3.260.0030.04014.73
5.3.250.0070.06014.61
5.3.240.0170.04714.60
5.3.230.0030.07014.61
5.3.220.0000.04014.71
5.3.210.0000.04314.56
5.3.200.0000.04014.57
5.3.190.0030.04014.58
5.3.180.0030.03714.59
5.3.170.0000.03314.79
5.3.160.0030.03714.79
5.3.150.0070.03314.79
5.3.140.0000.04014.69
5.3.130.0000.03714.56
5.3.120.0070.05314.69
5.3.110.0030.03714.41
5.3.100.0070.04714.06
5.3.90.0070.03313.98
5.3.80.0000.04714.01
5.3.70.0100.03014.11
5.3.60.0000.04714.09
5.3.50.0070.03314.09
5.3.40.0000.03713.95
5.3.30.0100.03713.90
5.3.20.0130.02713.55
5.3.10.0070.02713.89
5.3.00.0070.07013.50
5.2.170.0030.06311.93
5.2.160.0030.02311.93
5.2.150.0000.02711.93
5.2.140.0000.03711.93
5.2.130.0000.06011.93
5.2.120.0070.05711.93
5.2.110.0100.05311.93
5.2.100.0030.05711.93
5.2.90.0000.05311.93
5.2.80.0030.04711.93
5.2.70.0030.06311.93
5.2.60.0070.02711.93
5.2.50.0070.03311.93
5.2.40.0070.05711.93
5.2.30.0000.04311.93
5.2.20.0030.05311.93
5.2.10.0070.02711.93
5.2.00.0000.03711.93
5.1.60.0030.04711.93
5.1.50.0030.05011.93
5.1.40.0000.04311.93
5.1.30.0030.04711.93
5.1.20.0070.02011.93
5.1.10.0030.03711.93
5.1.00.0030.02711.93
5.0.50.0030.02011.93
5.0.40.0000.02011.93
5.0.30.0000.04011.93
5.0.20.0030.02311.93
5.0.10.0000.04711.93
5.0.00.0000.04011.93
4.4.90.0000.01711.93
4.4.80.0030.01011.93
4.4.70.0000.02711.93
4.4.60.0000.02311.93
4.4.50.0030.02011.93
4.4.40.0030.04311.93
4.4.30.0000.01311.93
4.4.20.0000.02711.93
4.4.10.0000.03711.93
4.4.00.0070.04711.93
4.3.110.0070.02711.93
4.3.100.0000.01311.93
4.3.90.0030.02711.93
4.3.80.0000.02711.93
4.3.70.0000.03011.93
4.3.60.0100.01011.93
4.3.50.0000.01711.93
4.3.40.0000.02711.93
4.3.30.0000.01311.93
4.3.20.0000.01711.93
4.3.10.0000.02011.93
4.3.00.0000.02011.93

preferences:
101.37 ms | 400 KiB | 5 Q