3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct() { echo __METHOD__; } } class Bar extends Foo { public function __construct() { } public function callParentConstructor() { parent::__construct(); } } $bar = new Bar(); $bar->callParentConstructor();

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.00618.30
8.3.50.0100.00822.05
8.3.40.0120.00318.44
8.3.30.0030.01020.21
8.3.20.0040.00418.60
8.3.10.0000.00821.00
8.3.00.0040.00419.67
8.2.180.0110.00416.50
8.2.170.0110.00422.96
8.2.160.0100.00320.47
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0000.00826.16
8.2.120.0050.00321.18
8.2.110.0050.00522.13
8.2.100.0080.00417.72
8.2.90.0040.00419.05
8.2.80.0000.00719.45
8.2.70.0040.00417.63
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0050.00318.16
8.2.30.0100.00019.42
8.2.20.0090.00017.71
8.2.10.0040.00417.61
8.2.00.0040.00417.68
8.1.280.0140.00725.92
8.1.270.0040.00423.99
8.1.260.0090.00926.35
8.1.250.0080.00028.09
8.1.240.0060.00322.49
8.1.230.0070.00420.83
8.1.220.0080.00018.77
8.1.210.0040.00418.90
8.1.200.0030.00617.36
8.1.190.0080.00317.39
8.1.180.0000.00718.10
8.1.170.0030.00618.54
8.1.160.0000.00818.82
8.1.150.0070.00018.56
8.1.140.0000.00817.30
8.1.130.0000.00717.76
8.1.120.0030.00317.29
8.1.110.0030.00517.44
8.1.100.0040.00417.38
8.1.90.0070.00017.22
8.1.80.0040.00417.29
8.1.70.0040.00417.24
8.1.60.0040.00417.59
8.1.50.0040.00417.38
8.1.40.0000.00817.47
8.1.30.0050.00317.64
8.1.20.0030.00517.66
8.1.10.0040.00417.49
8.1.00.0060.00317.36
8.0.300.0030.00619.98
8.0.290.0000.00817.16
8.0.280.0030.00318.37
8.0.270.0000.00717.19
8.0.260.0000.00716.70
8.0.250.0080.00016.89
8.0.240.0000.00916.80
8.0.230.0030.00316.86
8.0.220.0070.00016.84
8.0.210.0000.00716.81
8.0.200.0000.00616.77
8.0.190.0000.00816.83
8.0.180.0040.00416.76
8.0.170.0080.00016.78
8.0.160.0000.00716.83
8.0.150.0030.00316.81
8.0.140.0040.00416.76
8.0.130.0030.00313.23
8.0.120.0000.00816.74
8.0.110.0040.00416.79
8.0.100.0070.00016.86
8.0.90.0000.00816.89
8.0.80.0030.01716.79
8.0.70.0070.00016.64
8.0.60.0040.00416.72
8.0.50.0040.00416.78
8.0.30.0100.00916.97
8.0.20.0100.00817.40
8.0.10.0000.00716.83
8.0.00.0080.01016.85
7.4.330.0050.00016.79
7.4.320.0030.00316.54
7.4.300.0030.00316.49
7.4.290.0000.00716.44
7.4.280.0000.00616.63
7.4.270.0070.00016.50
7.4.260.0000.00613.22
7.4.250.0050.00316.46
7.4.240.0040.00416.53
7.4.230.0030.00316.53
7.4.220.0080.00916.40
7.4.210.0090.00716.55
7.4.200.0040.00416.48
7.4.190.0030.00316.64
7.4.160.0080.00816.59
7.4.150.0100.00717.40
7.4.140.0140.00817.86
7.4.130.0080.01116.43
7.4.120.0110.00716.46
7.4.110.0120.01216.32
7.4.100.0070.01416.42
7.4.90.0140.01816.52
7.4.80.0140.00319.39
7.4.70.0100.00716.46
7.4.60.0000.01916.59
7.4.50.0040.00416.38
7.4.40.0090.00622.77
7.4.30.0100.00916.57
7.4.00.0070.01114.68
7.3.330.0050.00013.25
7.3.320.0060.00013.06
7.3.310.0000.00616.14
7.3.300.0060.00016.16
7.3.290.0100.00316.25
7.3.280.0090.00816.28
7.3.270.0070.01017.40
7.3.260.0110.00718.24
7.3.250.0170.00316.43
7.3.240.0090.00616.54
7.3.230.0130.00616.39
7.3.210.0100.00716.35
7.3.200.0070.01619.39
7.3.190.0060.01616.22
7.3.180.0130.00316.46
7.3.170.0030.01216.54
7.3.160.0070.01016.31
7.3.120.0060.00914.96
7.3.00.0100.00616.63
7.2.330.0100.00716.67
7.2.320.0070.01016.27
7.2.310.0130.00616.68
7.2.300.0100.00616.27
7.2.290.0100.00716.64
7.2.130.0030.01116.79
7.2.120.0090.00616.73
7.2.110.0100.00316.93
7.2.100.0090.00616.55
7.2.90.0030.00917.09
7.2.80.0100.00616.63
7.2.70.0000.01316.65
7.2.60.0020.01316.68
7.2.50.0040.01116.76
7.2.40.0000.01516.81
7.2.30.0110.00416.63
7.2.20.0030.01317.00
7.2.10.0080.01116.90
7.2.00.0070.00918.04
7.1.250.0030.01015.73
7.1.240.0030.00915.76
7.1.230.0060.00615.67
7.1.220.0060.00615.64
7.1.210.0040.00715.61
7.1.200.0050.00915.71
7.1.190.0000.01115.53
7.1.180.0030.01015.81
7.1.170.0070.00715.74
7.1.160.0000.01415.77
7.1.150.0090.00615.73
7.1.140.0170.00615.54
7.1.130.0100.00415.72
7.1.120.0000.01515.47
7.1.110.0110.00015.71
7.1.100.0040.01116.87
7.1.90.0040.01215.20
7.1.80.0080.00315.58
7.1.70.0070.00516.20
7.1.60.0050.00716.42
7.1.50.0080.00516.13
7.1.40.0040.00816.03
7.1.30.0050.00915.98
7.1.20.0050.00815.99
7.1.10.0050.00415.97
7.1.00.0020.00715.85
7.0.330.0060.00615.12
7.0.320.0030.01315.08
7.0.310.0040.00815.25
7.0.300.0030.00615.09
7.0.290.0030.00715.25
7.0.280.0070.00415.30
7.0.270.0130.00015.31
7.0.260.0170.00015.22
7.0.250.0040.00915.30
7.0.240.0040.00815.41
7.0.230.0130.00315.09
7.0.220.0060.00615.37
7.0.210.0060.01115.25
7.0.200.0030.01015.83
7.0.190.0020.01115.88
7.0.180.0080.00515.81
7.0.170.0000.00815.52
7.0.160.0060.00615.57
7.0.150.0110.00615.63
7.0.140.0050.00715.71
7.0.130.0050.00515.83
7.0.120.0050.00715.69
7.0.110.0010.01015.69
7.0.100.0020.01115.81
7.0.90.0030.00615.64
7.0.80.0070.00315.73
7.0.70.0050.00915.73
7.0.60.0080.00515.44
7.0.50.0060.00515.69
7.0.40.0020.00914.26
7.0.30.0050.00914.38
7.0.20.0040.00914.18
7.0.10.0050.00714.39
7.0.00.0020.01014.39
5.6.380.0100.00714.08
5.6.370.0030.01314.38
5.6.360.0060.00614.45
5.6.350.0000.01313.90
5.6.340.0080.00414.32
5.6.330.0030.01314.53
5.6.320.0150.00314.18
5.6.310.0050.01214.30
5.6.300.0070.02217.63
5.6.290.0030.02617.72
5.6.280.0070.02617.51
5.6.270.0090.02217.65
5.6.260.0070.02317.71
5.6.250.0020.02717.67
5.6.240.0020.02917.58
5.6.230.0100.02017.48
5.6.220.0020.03417.69
5.6.210.0000.02717.41
5.6.200.0030.02417.49
5.6.190.0080.03417.64
5.6.180.0070.02617.65
5.6.170.0020.03117.59
5.6.160.0060.02217.52
5.6.150.0050.02317.64
5.6.140.0020.02717.40
5.6.130.0020.02817.78
5.6.120.0030.02917.69
5.6.110.0050.02617.38
5.6.100.0020.02717.76
5.6.90.0070.02417.56
5.6.80.0080.03317.28
5.6.70.0050.02517.30
5.6.60.0040.02517.14
5.6.50.0030.02617.29
5.6.40.0030.02417.08
5.6.30.0020.02617.24
5.6.20.0080.02217.25
5.6.10.0060.02417.14
5.6.00.0090.02617.28
5.5.380.0000.02914.36
5.5.370.0060.02314.42
5.5.360.0060.02514.35
5.5.350.0100.02314.36
5.5.340.0040.02514.44
5.5.330.0020.02414.64
5.5.320.0020.02614.65
5.5.310.0120.03614.46
5.5.300.0050.02014.63
5.5.290.0140.01914.64
5.5.280.0060.02914.52
5.5.270.0040.02514.50
5.5.260.0070.02014.44
5.5.250.0060.02414.51
5.5.240.0070.02314.33
5.5.230.0020.02514.28
5.5.220.0070.03214.32
5.5.210.0110.01914.28
5.5.200.0030.02214.36
5.5.190.0000.04214.31
5.5.180.0030.03114.12
5.5.170.0000.01111.18
5.5.160.0030.02214.27
5.5.150.0090.02614.31
5.5.140.0120.02814.13
5.5.130.0050.02114.31
5.5.120.0030.02514.28
5.5.110.0020.02614.15
5.5.100.0090.02114.23
5.5.90.0050.02114.27
5.5.80.0020.04314.24
5.5.70.0060.02414.25
5.5.60.0080.04114.28
5.5.50.0080.02714.27
5.5.40.0050.02314.26
5.5.30.0030.02314.21
5.5.20.0040.02314.25
5.5.10.0030.04114.23
5.5.00.0000.03314.25
5.4.450.0040.02815.29
5.4.440.0080.02615.29
5.4.430.0060.02215.37
5.4.420.0080.02015.24
5.4.410.0050.03715.16
5.4.400.0030.02215.15
5.4.390.0020.02715.13
5.4.380.0020.02515.06
5.4.370.0080.01915.12
5.4.360.0020.03015.12
5.4.350.0030.02115.08
5.4.340.0040.02215.19
5.4.330.0000.00911.18
5.4.320.0020.02515.14
5.4.310.0070.03115.11
5.4.300.0080.03015.08
5.4.290.0040.02015.07
5.4.280.0030.02715.04
5.4.270.0020.02315.13
5.4.260.0080.01915.18
5.4.250.0020.02415.15
5.4.240.0000.04915.10
5.4.230.0070.02115.03
5.4.220.0020.02815.14
5.4.210.0030.02115.12
5.4.200.0080.02215.04
5.4.190.0050.02315.05
5.4.180.0050.03215.14
5.4.170.0050.03015.13
5.4.160.0060.02015.05
5.4.150.0040.02015.18
5.4.140.0070.02014.00
5.4.130.0030.04214.00
5.4.120.0020.02513.86
5.4.110.0000.02514.00
5.4.100.0040.02013.96
5.4.90.0030.02213.86
5.4.80.0030.02413.86
5.4.70.0020.02513.96
5.4.60.0040.02313.90
5.4.50.0030.02013.94
5.4.40.0000.02313.96
5.4.30.0020.03113.90
5.4.20.0080.01913.92
5.4.10.0020.02313.95
5.4.00.0050.02213.66
5.3.290.0020.02613.24
5.3.280.0030.02613.24
5.3.270.0050.02113.24
5.3.260.0060.04013.24
5.3.250.0050.02013.24
5.3.240.0080.03313.24
5.3.230.0010.02613.24
5.3.220.0020.02413.24
5.3.210.0130.01813.24
5.3.200.0010.02513.24
5.3.190.0050.01913.24
5.3.180.0040.03613.24
5.3.170.0060.02013.24
5.3.160.0020.02413.24
5.3.150.0020.02313.24
5.3.140.0070.01813.24
5.3.130.0040.02313.24
5.3.120.0010.02413.24
5.3.110.0020.02313.24
5.3.100.0050.02113.24
5.3.90.0070.01913.24
5.3.80.0060.01713.24
5.3.70.0050.01913.24
5.3.60.0020.02213.24
5.3.50.0030.02013.24
5.3.40.0070.02313.24
5.3.30.0030.02413.24
5.3.20.0000.02613.24
5.3.10.0050.01913.24
5.3.00.0050.02013.24
5.2.170.0010.02313.24
5.2.160.0020.01813.24
5.2.150.0000.03413.24
5.2.140.0020.01913.24
5.2.130.0020.01713.24
5.2.120.0020.01913.24
5.2.110.0100.01413.24
5.2.100.0030.01513.24
5.2.90.0020.01813.24
5.2.80.0080.01213.24
5.2.70.0060.01413.24
5.2.60.0020.01913.24
5.2.50.0030.03313.24
5.2.40.0060.03513.24
5.2.30.0020.02413.24
5.2.20.0030.01813.24
5.2.10.0000.02013.24
5.2.00.0060.01713.24
5.1.60.0020.01613.24
5.1.50.0020.01413.24
5.1.40.0030.01513.24
5.1.30.0000.01713.24
5.1.20.0070.01513.24
5.1.10.0010.01613.24
5.1.00.0040.01213.24
5.0.50.0000.02213.24
5.0.40.0020.01413.24
5.0.30.0030.01613.24
5.0.20.0000.01413.24
5.0.10.0070.00913.24
5.0.00.0090.01713.24
4.4.90.0030.01213.24
4.4.80.0020.02013.24
4.4.70.0010.01013.24
4.4.60.0040.00913.24
4.4.50.0020.01113.24
4.4.40.0020.01413.24
4.4.30.0030.01513.24
4.4.20.0030.00913.24
4.4.10.0020.00913.24
4.4.00.0010.01413.24
4.3.110.0020.01113.24
4.3.100.0040.01113.24
4.3.90.0030.00813.24
4.3.80.0000.01513.24
4.3.70.0020.01013.24
4.3.60.0000.01313.24
4.3.50.0020.01213.24
4.3.40.0000.01513.24
4.3.30.0000.01213.24
4.3.20.0020.01013.24
4.3.10.0000.01213.24
4.3.00.0020.00913.24

preferences:
46.21 ms | 400 KiB | 5 Q