3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('display_errors', true); error_reporting(E_ALL); abstract class papa { public function __construct() { var_dump(__CLASS__ . '-' . __FUNCTION__); } } class son extends papa { public function son() { var_dump(__CLASS__ . '-' . __FUNCTION__); parent::papa(); } } var_dump('SON'); $boy = new son();

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.0140.00716.75
8.3.50.0030.01318.07
8.3.40.0150.00018.41
8.3.30.0120.00318.31
8.3.20.0070.00020.33
8.3.10.0070.00021.77
8.3.00.0040.00420.95
8.2.180.0000.01518.16
8.2.170.0150.00022.96
8.2.160.0090.00920.52
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00019.39
8.2.120.0070.00026.35
8.2.110.0040.00719.02
8.2.100.0110.00017.92
8.2.90.0000.00819.09
8.2.80.0060.00317.97
8.2.70.0040.00417.50
8.2.60.0040.00417.93
8.2.50.0000.00918.07
8.2.40.0080.00022.23
8.2.30.0000.00720.67
8.2.20.0030.00517.56
8.2.10.0040.00417.93
8.2.00.0050.00217.99
8.1.280.0120.00425.92
8.1.270.0130.00620.30
8.1.260.0080.00028.09
8.1.250.0000.00728.09
8.1.240.0000.00919.22
8.1.230.0080.00420.72
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.13
8.1.190.0040.00417.10
8.1.180.0080.00018.10
8.1.170.0060.00318.41
8.1.160.0000.00720.61
8.1.150.0000.00718.83
8.1.140.0000.00819.58
8.1.130.0040.00417.59
8.1.120.0040.00417.42
8.1.110.0040.00417.36
8.1.100.0040.00417.30
8.1.90.0000.00717.38
8.1.80.0000.00717.36
8.1.70.0040.00417.27
8.1.60.0040.00417.59
8.1.50.0080.00017.50
8.1.40.0050.00317.49
8.1.30.0050.00317.59
8.1.20.0000.00817.66
8.1.10.0000.01217.47
8.1.00.0000.00717.47
8.0.300.0050.00318.77
8.0.290.0050.00216.63
8.0.280.0000.00718.38
8.0.270.0000.00717.07
8.0.260.0040.00417.13
8.0.250.0040.00416.92
8.0.240.0070.00016.83
8.0.230.0030.00316.79
8.0.220.0030.00316.80
8.0.210.0070.00016.76
8.0.200.0000.00716.91
8.0.190.0000.00716.88
8.0.180.0070.00016.88
8.0.170.0040.00416.87
8.0.160.0000.00816.80
8.0.150.0040.00416.82
8.0.140.0000.00816.67
8.0.130.0030.00313.33
8.0.120.0000.00816.78
8.0.110.0040.00416.72
8.0.100.0000.00816.75
8.0.90.0070.00016.76
8.0.80.0040.01116.83
8.0.70.0070.00016.72
8.0.60.0000.00816.87
8.0.50.0040.00416.64
8.0.30.0080.01216.88
8.0.20.0110.00817.40
8.0.10.0040.00416.99
8.0.00.0090.01116.56
7.4.330.0030.00316.86
7.4.320.0030.00316.58
7.4.300.0000.00716.52
7.4.290.0090.00316.61
7.4.280.0070.00016.50
7.4.270.0000.00716.48
7.4.260.0000.00816.60
7.4.250.0000.00716.45
7.4.240.0010.00616.50
7.4.230.0000.00716.44
7.4.220.0060.01216.63
7.4.210.0060.00916.48
7.4.200.0000.00816.65
7.4.160.0050.01016.36
7.4.150.0150.00317.40
7.4.140.0150.00617.86
7.4.130.0070.01216.66
7.4.120.0110.00716.38
7.4.110.0030.01316.46
7.4.100.0080.01116.26
7.4.90.0070.01016.44
7.4.80.0130.01019.39
7.4.70.0100.00716.23
7.4.60.0060.01216.40
7.4.50.0080.00816.50
7.4.40.0120.00416.36
7.4.30.0060.01216.63
7.4.00.0080.00915.07
7.3.330.0000.00513.36
7.3.320.0000.00613.34
7.3.310.0030.00316.41
7.3.300.0030.00316.38
7.3.290.0110.00416.33
7.3.280.0100.00716.39
7.3.270.0090.00917.40
7.3.260.0080.00816.26
7.3.250.0070.01316.41
7.3.240.0090.00916.54
7.3.230.0060.01216.53
7.3.210.0060.00916.37
7.3.200.0100.01016.29
7.3.190.0110.00516.54
7.3.180.0110.01116.38
7.3.170.0140.00816.61
7.3.160.0110.01116.34
7.3.120.0070.01014.79
7.3.110.0040.01214.72
7.3.100.0070.01115.04
7.3.90.0070.00714.66
7.3.80.0070.00714.79
7.3.70.0060.00814.90
7.3.60.0030.01414.60
7.3.50.0100.00014.76
7.3.40.0090.00414.83
7.3.30.0140.00014.94
7.3.20.0030.01216.67
7.3.10.0060.00316.61
7.3.00.0030.01416.59
7.2.330.0210.00416.45
7.2.320.0120.00616.27
7.2.310.0040.01816.61
7.2.300.0100.01016.66
7.2.290.0060.00916.66
7.2.250.0040.01514.75
7.2.240.0110.00715.04
7.2.230.0030.01014.88
7.2.220.0060.00814.79
7.2.210.0070.00414.76
7.2.200.0080.00414.90
7.2.190.0060.00814.90
7.2.180.0060.00914.80
7.2.170.0120.00615.01
7.2.160.0060.00914.79
7.2.150.0070.00716.77
7.2.140.0040.01216.78
7.2.130.0080.00316.76
7.2.120.0100.00716.84
7.2.110.0000.01316.59
7.2.100.0030.00916.60
7.2.90.0060.01216.89
7.2.80.0030.01016.53
7.2.70.0030.00716.64
7.2.60.0090.00316.53
7.2.50.0000.01216.90
7.2.40.0040.00816.57
7.2.30.0070.01316.91
7.2.20.0100.00716.47
7.2.10.0110.00416.76
7.2.00.0020.00817.83
7.1.330.0030.00715.85
7.1.320.0060.00615.77
7.1.310.0030.01015.64
7.1.300.0100.00315.72
7.1.290.0070.00715.58
7.1.280.0030.00915.68
7.1.270.0030.00615.67
7.1.260.0000.00915.63
7.1.250.0070.01015.64
7.1.240.0040.00415.79
7.1.230.0030.00515.64
7.1.220.0000.00815.60
7.1.210.0040.01115.49
7.1.200.0020.01415.56
7.1.190.0030.01015.74
7.1.180.0080.00015.67
7.1.170.0070.00715.71
7.1.160.0100.00715.75
7.1.150.0030.01215.57
7.1.140.0030.01015.46
7.1.130.0000.01115.73
7.1.120.0040.01115.73
7.1.110.0070.00715.84
7.1.100.0020.01416.73
7.1.90.0030.01015.66
7.1.80.0110.00315.86
7.1.70.0030.00716.43
7.1.60.0070.01017.51
7.1.50.0050.01016.25
7.1.40.0030.01315.79
7.1.30.0070.00715.73
7.1.20.0040.01115.74
7.1.10.0070.01015.74
7.1.00.0030.04318.99
7.0.330.0020.01215.07
7.0.320.0030.00515.23
7.0.310.0070.00715.40
7.0.300.0090.00615.31
7.0.290.0090.00915.09
7.0.280.0040.00715.09
7.0.270.0070.00715.06
7.0.260.0070.00715.30
7.0.250.0080.00415.12
7.0.240.0060.00615.29
7.0.230.0060.00615.49
7.0.220.0000.00815.16
7.0.210.0070.00315.45
7.0.200.0020.01015.91
7.0.190.0070.00715.34
7.0.180.0070.00715.14
7.0.170.0040.00415.34
7.0.160.0070.00715.18
7.0.150.0080.00415.34
7.0.140.0030.01015.13
7.0.130.0000.00815.41
7.0.120.0030.01315.29
7.0.110.0090.00615.35
7.0.100.0080.00615.41
7.0.90.0000.00915.29
7.0.80.0030.00915.31
7.0.70.0030.00515.58
7.0.60.0030.02517.55
7.0.50.0030.04716.77
7.0.40.0070.02816.90
7.0.30.0200.02516.66
7.0.20.0120.05116.75
7.0.10.0070.02516.75
7.0.00.0060.02616.73
5.6.400.0000.01314.32
5.6.390.0070.01114.68
5.6.380.0030.01314.07
5.6.370.0000.01514.30
5.6.360.0060.00914.04
5.6.350.0090.00614.30
5.6.340.0040.00414.54
5.6.330.0070.00713.91
5.6.320.0040.00414.08
5.6.310.0000.01214.20
5.6.300.0090.00314.14
5.6.290.0090.00314.19
5.6.280.0020.02217.65
5.6.270.0090.00314.19
5.6.260.0030.00714.12
5.6.250.0040.00413.90
5.6.240.0100.00314.07
5.6.230.0060.00914.23
5.6.220.0030.00914.30
5.6.210.0040.04417.39
5.6.200.0130.03716.30
5.6.190.0120.04317.34
5.6.180.0170.04217.30
5.6.170.0120.02617.28
5.6.160.0090.02217.42
5.6.150.0080.02616.20
5.6.140.0120.02016.27
5.6.130.0050.03716.08
5.6.120.0030.05017.60
5.6.110.0060.02517.83
5.6.100.0100.04317.51
5.6.90.0050.03417.56
5.6.80.0070.01917.21
5.6.70.0030.00714.27
5.6.60.0000.01314.04
5.6.50.0080.00413.96
5.6.40.0040.01114.06
5.6.30.0090.00313.94
5.6.20.0030.00714.39
5.6.10.0070.00714.15
5.6.00.0060.00914.07
5.5.380.0000.01414.28
5.5.370.0030.01014.34
5.5.360.0060.00914.52
5.5.350.2150.02317.30
5.5.340.0030.02516.21
5.5.330.0070.03217.40
5.5.320.0130.02817.41
5.5.310.0130.03017.14
5.5.300.0080.02516.21
5.5.290.0060.04615.93
5.5.280.0060.04617.40
5.5.270.0030.03917.47
5.5.260.0070.03317.41
5.5.250.0120.03817.29
5.5.240.2050.02317.07
5.5.230.0060.00614.09
5.5.220.0000.01614.27
5.5.210.0000.01513.97
5.5.200.0120.00314.20
5.5.190.0080.00414.07
5.5.180.0100.00313.80
5.5.170.0060.00914.12
5.5.160.0060.00614.16
5.5.150.0060.00614.15
5.5.140.0060.00614.27
5.5.130.0090.00313.93
5.5.120.0090.00313.99
5.5.110.0030.00914.34
5.5.100.0030.00714.18
5.5.90.0070.00714.07
5.5.80.0000.01114.07
5.5.70.0040.00414.14
5.5.60.0090.00614.10
5.5.50.0030.01214.23
5.5.40.0060.00914.20
5.5.30.0070.00714.17
5.5.20.0070.00314.05
5.5.10.0040.01114.22
5.5.00.0000.01314.31

preferences:
62.46 ms | 400 KiB | 5 Q