3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function contoh() { echo "Ini fungsi contoh dalam class A"; } } class A extends B { function contoh() { echo " Saya ini contoh dari B::contoh() sebagai fungsi tambahan"; } } // membuat variabel baru $b = new B; // memanggil fungsi contoh pada b $b->contoh();

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.70.0110.00418.56
8.3.60.0090.00616.75
8.3.50.0220.00517.28
8.3.40.0110.00418.71
8.3.30.0070.00718.57
8.3.20.0080.00018.78
8.3.10.0110.00718.60
8.3.00.0000.00919.08
8.2.180.0000.01416.50
8.2.170.0040.01122.96
8.2.160.0090.00618.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.14
8.2.110.0040.00421.06
8.2.100.0080.00317.78
8.2.90.0060.00319.30
8.2.80.0050.00219.30
8.2.70.0090.00017.75
8.2.60.0030.00617.80
8.2.50.0000.00818.07
8.2.40.0050.00318.16
8.2.30.0090.00017.89
8.2.20.0050.00317.61
8.2.10.0040.00417.60
8.2.00.0050.00517.74
8.1.280.0100.00625.92
8.1.270.0000.00922.09
8.1.260.0090.00026.35
8.1.250.0000.00728.09
8.1.240.0090.00022.42
8.1.230.0040.00820.82
8.1.220.0090.00017.77
8.1.210.0000.00818.82
8.1.200.0030.00617.22
8.1.190.0060.00317.40
8.1.180.0080.00018.10
8.1.170.0050.00318.90
8.1.160.0080.00018.70
8.1.150.0080.00018.57
8.1.140.0040.00417.39
8.1.130.0000.00717.63
8.1.120.0070.00017.45
8.1.110.0030.00517.29
8.1.100.0040.00417.35
8.1.90.0040.00417.45
8.1.80.0000.00717.45
8.1.70.0000.00717.34
8.1.60.0080.00017.55
8.1.50.0000.00717.44
8.1.40.0040.00417.46
8.1.30.0090.00017.66
8.1.20.0030.00517.52
8.1.10.0000.00817.42
8.1.00.0080.00017.34
8.0.300.0050.00219.73
8.0.290.0030.00316.88
8.0.280.0030.00318.39
8.0.270.0030.00317.20
8.0.260.0030.00316.88
8.0.250.0040.00416.95
8.0.240.0040.00416.96
8.0.230.0000.00716.88
8.0.220.0000.00816.79
8.0.210.0030.00616.89
8.0.200.0040.00416.97
8.0.190.0000.00716.92
8.0.180.0040.00416.89
8.0.170.0050.00316.75
8.0.160.0000.00716.94
8.0.150.0000.00816.89
8.0.140.0020.00516.73
8.0.130.0030.00313.28
8.0.120.0040.00416.86
8.0.110.0000.00816.92
8.0.100.0050.00316.96
8.0.90.0050.00316.84
8.0.80.0030.01216.96
8.0.70.0000.00816.84
8.0.60.0040.00416.90
8.0.50.0040.00416.86
8.0.30.0090.00917.18
8.0.20.0130.00516.94
8.0.10.0040.00416.83
8.0.00.0120.01116.74
7.4.330.0030.00312.94
7.4.320.0030.00316.59
7.4.300.0000.00716.43
7.4.290.0080.00016.55
7.4.280.0050.00316.46
7.4.270.0000.00716.55
7.4.260.0000.00613.33
7.4.250.0000.00816.33
7.4.240.0030.00316.51
7.4.230.0000.00616.26
7.4.220.0100.00716.41
7.4.210.0090.01016.48
7.4.200.0070.00016.57
7.4.190.0030.00316.49
7.4.160.0150.00016.39
7.4.150.0070.01016.32
7.4.140.0130.00316.57
7.4.130.0080.00816.44
7.4.120.0100.00716.73
7.4.110.0070.01016.56
7.4.100.0060.01216.47
7.4.90.0150.00916.38
7.4.80.0000.01819.39
7.4.70.0130.00516.53
7.4.60.0100.00616.51
7.4.50.0030.00316.46
7.4.40.0060.00616.50
7.4.30.0090.00616.54
7.4.00.0070.00715.00
7.3.330.0060.00013.30
7.3.320.0050.00013.15
7.3.310.0000.00716.15
7.3.300.0030.00316.24
7.3.290.0040.01216.27
7.3.280.0050.01216.32
7.3.270.0090.00816.30
7.3.260.0120.00916.37
7.3.250.0070.01216.51
7.3.240.0100.00716.44
7.3.230.0100.00716.56
7.3.210.0110.00716.29
7.3.200.0070.01016.27
7.3.190.0070.01016.29
7.3.180.0090.00616.41
7.3.170.0030.01316.46
7.3.160.0110.00816.38
7.3.120.0030.01314.80
7.3.00.0150.00416.51
7.2.330.0120.00416.63
7.2.320.0070.01116.29
7.2.310.0000.02016.26
7.2.300.0060.00916.47
7.2.290.0090.00916.65
7.2.130.0110.01216.54
7.2.120.0100.00716.26
7.2.110.0090.01216.81
7.2.100.0090.00616.30
7.2.90.0070.00316.42
7.2.80.0070.00716.38
7.2.70.0150.00416.50
7.2.60.0050.00816.63
7.2.50.0100.01016.40
7.2.40.0040.01116.50
7.2.30.0100.00316.32
7.2.20.0110.00016.69
7.2.10.0120.00616.70
7.2.00.0070.00417.85
7.1.250.0110.01115.46
7.1.240.0150.00415.54
7.1.230.0070.01115.06
7.1.220.0050.01115.66
7.1.210.0030.00615.61
7.1.200.0060.00715.58
7.1.190.0130.00315.27
7.1.180.0030.01315.62
7.1.170.0060.00315.46
7.1.160.0070.00715.63
7.1.150.0200.00015.55
7.1.140.0070.00715.65
7.1.130.0060.00315.32
7.1.120.0030.00915.34
7.1.110.0070.00715.34
7.1.100.0050.00816.77
7.1.90.0110.00415.29
7.1.80.0130.00315.62
7.1.70.0040.00916.19
7.1.60.0060.01117.40
7.1.50.0060.00816.06
7.1.40.0100.00315.79
7.1.30.0070.01015.37
7.1.20.0040.01115.15
7.1.10.0060.00715.64
7.1.00.0080.01818.90
7.0.330.0180.00614.83
7.0.320.0140.00315.10
7.0.310.0110.00615.29
7.0.300.0070.00715.00
7.0.290.0030.00614.95
7.0.280.0030.00914.94
7.0.270.0060.00615.23
7.0.260.0140.00315.08
7.0.250.0090.00615.13
7.0.240.0030.01015.09
7.0.230.0080.00315.33
7.0.220.0000.01315.39
7.0.210.0100.00315.02
7.0.200.0090.00715.88
7.0.190.0000.00915.16
7.0.180.0040.01415.41
7.0.170.0030.00515.19
7.0.160.0070.00415.28
7.0.150.0080.00415.02
7.0.140.0080.03718.69
7.0.130.0030.00715.33
7.0.120.0080.00315.17
7.0.110.0030.01015.15
7.0.100.0000.01415.14
7.0.90.0000.01414.91
7.0.80.0090.00315.21
7.0.70.0080.00415.44
7.0.60.0050.03517.63
7.0.50.0080.04016.42
7.0.40.0030.05216.76
7.0.30.0270.03916.56
7.0.20.0200.04116.68
7.0.10.0030.02516.61
7.0.00.0030.04616.73
5.6.380.0100.00513.96
5.6.370.0030.00713.85
5.6.360.0000.01514.43
5.6.350.0090.00914.30
5.6.340.0000.00914.19
5.6.330.0070.00714.19
5.6.320.0030.01014.38
5.6.310.0020.01014.15
5.6.300.0070.00713.85
5.6.290.0110.00314.05
5.6.280.0080.03517.52
5.6.270.0060.00614.54
5.6.260.0060.00614.21
5.6.250.0060.00314.30
5.6.240.0080.00413.97
5.6.230.0040.00713.98
5.6.220.0040.00713.73
5.6.210.0100.03817.31
5.6.200.0020.02516.12
5.6.190.0070.02317.06
5.6.180.0180.04017.20
5.6.170.0100.02917.10
5.6.160.0080.02217.21
5.6.150.0030.04216.18
5.6.140.0080.04316.06
5.6.130.0100.04415.87
5.6.120.0070.02717.42
5.6.110.0020.04217.49
5.6.100.0090.04217.54
5.6.90.0030.04717.51
5.6.80.0070.03816.98
5.6.70.0040.00413.79
5.6.60.0030.00514.19
5.6.50.0040.00413.90
5.6.40.0110.00013.88
5.6.30.0000.01013.89
5.6.20.0040.00413.83
5.6.10.0040.01113.65
5.6.00.0000.00713.86
5.5.380.0050.00211.09
5.5.370.0060.00610.90
5.5.360.0040.00710.90
5.5.350.0270.03015.84
5.5.340.0020.03214.45
5.5.330.0110.03615.79
5.5.320.0220.04215.61
5.5.310.0170.04615.55
5.5.300.0000.02514.42
5.5.290.0050.02214.43
5.5.280.0000.03715.99
5.5.270.0050.04315.89
5.5.260.0070.02015.79
5.5.250.0060.04215.79
5.5.240.0150.03915.63
5.5.230.0130.00010.97
5.5.220.0000.01010.90
5.5.210.0060.00310.90
5.5.200.0090.00310.90
5.5.190.0050.00011.16
5.5.180.0000.01010.91
5.5.170.0000.00810.95
5.5.160.0000.00911.06
5.5.150.0030.00310.90
5.5.140.0070.00310.90
5.5.130.0030.00310.90
5.5.120.0050.00210.90
5.5.110.0040.00710.97
5.5.100.0040.00810.90
5.5.90.0000.01010.90
5.5.80.0030.00310.90
5.5.70.0030.00610.90
5.5.60.0030.00310.90
5.5.50.0030.00310.90
5.5.40.0050.00311.00
5.5.30.0060.00011.00
5.5.20.0050.00110.90
5.5.10.0030.00710.90
5.5.00.0030.00810.90
5.4.450.0060.02815.04
5.4.440.0100.03815.19
5.4.430.0090.02215.08
5.4.420.0080.03815.04
5.4.410.0080.02014.97
5.4.400.0060.02615.03
5.4.390.0020.03315.04
5.4.380.0020.04015.02
5.4.370.0000.03215.05
5.4.360.0030.04315.01
5.4.350.0030.04015.01
5.4.340.0090.04014.99
5.4.330.0040.00410.90
5.4.320.0130.03215.07
5.4.310.0000.04614.88
5.4.300.0100.02915.03
5.4.290.0080.03715.07
5.4.280.0030.02514.96
5.4.270.0050.02115.07
5.4.260.0030.02315.03
5.4.250.0040.03215.02
5.4.240.0080.03514.88
5.4.230.0110.03514.99
5.4.220.0070.03815.02
5.4.210.0070.04314.90
5.4.200.0020.04215.02
5.4.190.0050.03014.98
5.4.180.0000.02315.00
5.4.170.0040.02114.97
5.4.160.0020.02515.04
5.4.150.0050.02014.92
5.4.140.0080.01513.65
5.4.130.0060.01713.67
5.4.120.0020.02013.71
5.4.110.0040.02113.63
5.4.100.0000.02313.60
5.4.90.0020.02013.60
5.4.80.0050.01713.63
5.4.70.0050.01713.64
5.4.60.0020.02713.68
5.4.50.0030.02113.70
5.4.40.0050.02013.65
5.4.30.0050.01813.64
5.4.20.0030.02013.63
5.4.10.0030.01913.64
5.4.00.0060.01813.38
5.3.290.0080.03812.78
5.3.280.0020.04412.78
5.3.270.0040.02412.75
5.3.260.0080.01812.77
5.3.250.0000.02412.83
5.3.240.0020.02312.75
5.3.230.0040.02012.75
5.3.220.0020.02212.68
5.3.210.0030.02212.73
5.3.200.0000.02412.76
5.3.190.0060.01712.75
5.3.180.0030.02312.73
5.3.170.0080.01512.76
5.3.160.0010.02012.74
5.3.150.0070.01712.73
5.3.140.0050.02212.73
5.3.130.0050.02112.72
5.3.120.0040.02112.76
5.3.110.0040.02012.69
5.3.100.0020.02412.43
5.3.90.0020.02212.40
5.3.80.0020.02112.48
5.3.70.0060.01712.44
5.3.60.0070.01712.43
5.3.50.0020.02412.43
5.3.40.0000.02712.50
5.3.30.0000.02412.38
5.3.20.0040.01812.32
5.3.10.0030.02012.36
5.3.00.0050.02412.25
5.2.170.0030.02011.00
5.2.160.0020.02011.05
5.2.150.0000.02711.04
5.2.140.0040.02011.02
5.2.130.0020.01910.98
5.2.120.0040.01711.07
5.2.110.0020.01711.03
5.2.100.0010.01611.00
5.2.90.0060.01310.95
5.2.80.0030.01811.00
5.2.70.0030.01611.00
5.2.60.0020.03010.92
5.2.50.0040.01610.99
5.2.40.0050.03310.95
5.2.30.0060.02210.89
5.2.20.0040.01910.96
5.2.10.0040.02210.88
5.2.00.0060.02610.81
5.1.60.0060.01010.43
5.1.50.0010.02010.45
5.1.40.0050.01210.44
5.1.30.0050.01310.62
5.1.20.0070.03010.63
5.1.10.0050.02010.44
5.1.00.0040.01410.47
5.0.50.0030.0129.74
5.0.40.0040.0189.64
5.0.30.0040.0339.58
5.0.20.0020.0169.54
5.0.10.0040.0209.56
5.0.00.0020.0359.49
4.4.90.0030.0109.37
4.4.80.0000.0119.37
4.4.70.0010.0119.37
4.4.60.0010.0119.37
4.4.50.0030.0089.37
4.4.40.0000.0179.37
4.4.30.0010.0219.37
4.4.20.0020.0119.37
4.4.10.0000.0119.37
4.4.00.0020.0289.37
4.3.110.0020.0189.37
4.3.100.0020.0139.37
4.3.90.0030.0189.37
4.3.80.0010.0189.37
4.3.70.0050.0079.37
4.3.60.0030.0139.37
4.3.50.0020.0179.37
4.3.40.0080.0239.37
4.3.30.0000.0169.37
4.3.20.0030.0109.37
4.3.10.0000.0179.37
4.3.00.0020.0179.37

preferences:
59.1 ms | 401 KiB | 5 Q