3v4l.org

run code in 300+ PHP versions simultaneously
<?php class dad { function dad() { // implements some logic } } class child extends dad { function child() { echo "I'm " , get_parent_class($this) , "'s son\n"; } } class child2 extends child { function child2() { echo "I'm " , get_parent_class('child2') , "'s son too\n"; } } $foo = new child(); $bar = new child2();

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.0120.00616.38
8.3.50.0100.01015.98
8.3.40.0150.00618.77
8.3.30.0120.00618.51
8.3.20.0040.00420.16
8.3.10.0000.00821.86
8.3.00.0080.00019.54
8.2.180.0040.01116.75
8.2.170.0100.00722.96
8.2.160.0090.00620.36
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0000.01117.38
8.2.110.0030.00621.91
8.2.100.0080.00417.50
8.2.90.0000.00819.07
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0060.00317.80
8.2.50.0040.00418.07
8.2.40.0090.00319.14
8.2.30.0040.00419.74
8.2.20.0000.00717.72
8.2.10.0040.00418.05
8.2.00.0040.00417.97
8.1.280.0100.01025.92
8.1.270.0080.01122.06
8.1.260.0080.00026.35
8.1.250.0080.00328.09
8.1.240.0060.00322.54
8.1.230.0080.00417.42
8.1.220.0060.00317.74
8.1.210.0030.00518.77
8.1.200.0040.00417.35
8.1.190.0000.00817.35
8.1.180.0030.00618.10
8.1.170.0040.00418.56
8.1.160.0000.00721.94
8.1.150.0070.00018.85
8.1.140.0080.00017.33
8.1.130.0100.00017.63
8.1.120.0000.00817.29
8.1.110.0000.00717.30
8.1.100.0000.00717.30
8.1.90.0000.00717.39
8.1.80.0000.00717.37
8.1.70.0070.00017.44
8.1.60.0040.00417.51
8.1.50.0040.00417.41
8.1.40.0050.00317.38
8.1.30.0060.00617.57
8.1.20.0000.00817.56
8.1.10.0060.00317.52
8.1.00.0060.00317.48
8.0.300.0000.00818.77
8.0.290.0000.00716.63
8.0.280.0070.00018.25
8.0.270.0070.00017.25
8.0.260.0060.00017.15
8.0.250.0040.00416.89
8.0.240.0070.00016.77
8.0.230.0000.00716.84
8.0.220.0030.00316.83
8.0.210.0030.00316.72
8.0.200.0000.00616.77
8.0.190.0040.00416.84
8.0.180.0040.00416.67
8.0.170.0000.00816.77
8.0.160.0040.00416.83
8.0.150.0000.00716.70
8.0.140.0040.00416.80
8.0.130.0000.00613.24
8.0.120.0000.00816.77
8.0.110.0080.00016.75
8.0.100.0040.00416.71
8.0.90.0070.00016.81
8.0.80.0090.00616.77
8.0.70.0000.00716.71
8.0.60.0030.00416.61
8.0.50.0000.00716.79
8.0.30.0110.00916.99
8.0.20.0120.00917.40
8.0.10.0040.00416.79
8.0.00.0130.00716.59
7.4.330.0060.00015.08
7.4.320.0000.00616.45
7.4.300.0030.00316.59
7.4.290.0000.01016.49
7.4.280.0050.00316.48
7.4.270.0000.00716.39
7.4.260.0000.00716.48
7.4.250.0000.00716.53
7.4.240.0040.00416.48
7.4.230.0030.00316.61
7.4.220.0060.01316.44
7.4.210.0080.00816.58
7.4.200.0040.00416.39
7.4.160.0030.01316.69
7.4.150.0120.00917.40
7.4.140.0160.00317.86
7.4.130.0050.01316.46
7.4.120.0110.00516.54
7.4.110.0100.01016.45
7.4.100.0190.00316.61
7.4.90.0030.01316.62
7.4.80.0100.00719.39
7.4.70.0060.00916.57
7.4.60.0120.00316.43
7.4.50.0040.00416.30
7.4.40.0060.01716.54
7.4.30.0090.00916.48
7.4.10.0060.00915.17
7.4.00.0080.00614.86
7.3.330.0020.00313.22
7.3.320.0000.00613.30
7.3.310.0040.00416.30
7.3.300.0000.00716.30
7.3.290.0030.00316.31
7.3.280.0130.00616.30
7.3.270.0060.01217.40
7.3.260.0070.01416.41
7.3.250.0080.01316.18
7.3.240.0100.00716.49
7.3.230.0060.01316.39
7.3.210.0100.00616.28
7.3.200.0130.00716.33
7.3.190.0130.00716.31
7.3.180.0090.00916.25
7.3.170.0090.00616.27
7.3.160.0110.00816.31
7.3.130.0060.01314.67
7.3.120.0060.01014.61
7.3.110.0090.00914.96
7.3.100.0080.00414.62
7.3.90.0070.00714.77
7.3.80.0080.00314.73
7.3.70.0000.01314.80
7.3.60.0040.00414.80
7.3.50.0060.00614.72
7.3.40.0000.01514.42
7.3.30.0030.00614.70
7.3.20.0090.00316.73
7.3.10.0080.00816.63
7.3.00.0090.00616.59
7.2.330.0070.01016.71
7.2.320.0080.00816.57
7.2.310.0080.00816.31
7.2.300.0000.01716.61
7.2.290.0100.01316.66
7.2.260.0100.00314.97
7.2.250.0130.00314.84
7.2.240.0060.00915.27
7.2.230.0090.00615.28
7.2.220.0000.01314.93
7.2.210.0030.01015.13
7.2.200.0060.00914.97
7.2.190.0040.00714.94
7.2.180.0110.00315.07
7.2.170.0030.01214.96
7.2.160.0030.00915.16
7.2.150.0040.01116.89
7.2.140.0100.01017.10
7.2.130.0060.00916.95
7.2.120.0040.01116.85
7.2.110.0090.00616.88
7.2.100.0070.00316.71
7.2.90.0090.00316.89
7.2.80.0040.01116.86
7.2.70.0030.00617.05
7.2.60.0040.01016.68
7.2.50.0060.01316.96
7.2.40.0040.00817.05
7.2.30.0030.01317.00
7.2.20.0030.01716.61
7.2.10.0140.00716.84
7.2.00.0040.00918.23
7.1.330.0040.00715.57
7.1.320.0030.01115.77
7.1.310.0030.00615.85
7.1.300.0100.00315.68
7.1.290.0000.01115.86
7.1.280.0100.00315.72
7.1.270.0070.00715.56
7.1.260.0030.00715.74
7.1.250.0100.00615.87
7.1.240.0120.00315.83
7.1.230.0060.00915.81
7.1.220.0130.00015.49
7.1.210.0070.00715.81
7.1.200.0050.00915.76
7.1.190.0030.01015.70
7.1.180.0120.00315.77
7.1.170.0060.00615.81
7.1.160.0000.01315.82
7.1.150.0000.01315.50
7.1.140.0080.00415.77
7.1.130.0060.01015.79
7.1.120.0070.00315.57
7.1.110.0040.01115.73
7.1.100.0030.01217.15
7.1.90.0090.00315.66
7.1.80.0140.00015.75
7.1.70.0070.00316.23
7.1.60.0030.01217.59
7.1.50.0120.00516.31
7.1.40.0040.01115.70
7.1.30.0030.01015.55
7.1.20.0120.00015.73
7.1.10.0070.00715.67
7.1.00.0070.04118.92
7.0.330.0030.01015.27
7.0.320.0110.00415.14
7.0.310.0060.00315.36
7.0.300.0100.00715.18
7.0.290.0030.01215.18
7.0.280.0070.01015.36
7.0.270.0040.00815.49
7.0.260.0110.00415.30
7.0.250.0030.00615.47
7.0.240.0000.01115.48
7.0.230.0110.00315.32
7.0.220.0030.00715.21
7.0.210.0060.00615.34
7.0.200.0020.00915.85
7.0.190.0060.00915.45
7.0.180.0080.00415.28
7.0.170.0040.00414.89
7.0.160.0030.01015.31
7.0.150.0080.00415.39
7.0.140.0060.01015.41
7.0.130.0090.00315.46
7.0.120.0080.00615.40
7.0.110.0000.01515.47
7.0.100.0000.01315.15
7.0.90.0000.01015.48
7.0.80.0080.00515.51
7.0.70.0130.00015.39
7.0.60.0100.03917.65
7.0.50.0020.02816.65
7.0.40.0060.04016.77
7.0.30.0220.02516.88
7.0.20.0170.04516.62
7.0.10.0070.04016.63
7.0.00.0030.04216.67
5.6.400.0030.00914.29
5.6.390.0000.00814.11
5.6.380.0040.01114.30
5.6.370.0040.00814.51
5.6.360.0070.01014.43
5.6.350.0040.00414.18
5.6.340.0000.01714.39
5.6.330.0110.00314.05
5.6.320.0070.00714.26
5.6.310.0090.00614.02
5.6.300.0080.00314.55
5.6.290.0000.01514.23
5.6.280.0020.03817.60
5.6.270.0130.00314.44
5.6.260.0100.00714.34
5.6.250.0070.00314.41
5.6.240.0040.01114.21
5.6.230.0060.00913.97
5.6.220.0090.00614.47
5.6.210.0070.04417.36
5.6.200.0040.04216.31
5.6.190.0050.04317.42
5.6.180.1800.02717.37
5.6.170.0180.04117.21
5.6.160.0030.02617.29
5.6.150.0080.03716.37
5.6.140.0090.04016.22
5.6.130.0050.02616.25
5.6.120.0080.02517.67
5.6.110.0030.04017.79
5.6.100.0070.03417.59
5.6.90.0070.04017.79
5.6.80.0110.01817.34
5.6.70.2210.02017.12
5.6.60.0000.01014.20
5.6.50.0000.01414.19
5.6.40.0080.00814.23
5.6.30.0060.00914.36
5.6.20.0040.00714.12
5.6.10.0030.01014.49
5.6.00.0070.00714.25
5.5.380.0030.01514.28
5.5.370.0030.00914.02
5.5.360.0030.00614.20
5.5.350.0020.04517.24
5.5.340.0080.04316.05
5.5.330.0070.04417.14
5.5.320.0180.03617.06
5.5.310.0210.03517.36
5.5.300.0030.02616.04
5.5.290.0050.02315.95
5.5.280.0080.04317.60
5.5.270.0060.02017.36
5.5.260.0050.04617.51
5.5.250.0050.04217.47
5.5.240.0200.03816.99
5.5.230.0000.01413.76
5.5.220.0100.00013.91
5.5.210.0060.00313.93
5.5.200.0000.01614.07
5.5.190.0040.01114.02
5.5.180.0060.00613.82
5.5.170.0070.00314.33
5.5.160.0130.00013.79
5.5.150.0080.00414.02
5.5.140.0090.00314.12
5.5.130.0080.00313.95
5.5.120.0000.01413.96
5.5.110.0000.00814.17
5.5.100.0120.00014.09
5.5.90.0120.00014.29
5.5.80.0030.01013.98
5.5.70.0000.01114.48
5.5.60.0000.01013.78
5.5.50.0000.01214.25
5.5.40.0030.01013.95
5.5.30.0100.00314.09
5.5.20.0030.01014.32
5.5.10.0030.00614.23
5.5.00.0120.00014.25
5.4.450.0370.03015.52
5.4.440.0430.02615.68
5.4.430.0380.03115.78
5.4.420.0400.03015.71
5.4.410.0380.03315.67
5.4.400.0410.03015.52
5.4.390.0470.04115.46
5.4.380.0420.02515.58
5.4.370.0350.03415.52
5.4.360.0370.03415.63
5.4.350.0320.03115.60
5.4.340.0370.03015.37
5.4.330.0030.00611.88
5.4.320.0400.02815.43
5.4.310.0320.02915.42
5.4.300.0430.02815.55
5.4.290.0350.03315.47
5.4.280.0490.02715.48
5.4.270.0350.03115.36
5.4.260.0390.02815.58
5.4.250.0400.03015.62
5.4.240.0420.03815.56
5.4.230.0420.02715.58
5.4.220.0330.03015.50
5.4.210.0350.02715.51
5.4.200.0450.02715.56
5.4.190.0370.03115.49
5.4.180.0300.03315.56
5.4.170.0370.03015.43
5.4.160.0410.02815.54
5.4.150.0450.04415.57
5.4.140.0470.03814.12
5.4.130.0380.02514.18
5.4.120.0380.02814.12
5.4.110.0350.02814.23
5.4.100.0370.02514.25
5.4.90.0350.02514.17
5.4.80.0320.02614.10
5.4.70.0150.03014.22
5.4.60.0100.02114.07
5.4.50.0030.04014.06
5.4.40.0060.03814.22
5.4.30.0030.03914.21
5.4.20.0140.01714.10
5.4.10.0080.00311.88
5.4.00.0070.00011.88

preferences:
63.1 ms | 400 KiB | 5 Q