3v4l.org

run code in 300+ PHP versions simultaneously
<?php class form { function st() { return "form"; } } class state { function st() { return "state"; } } interface aa { function run(form $form); } abstract class a implements aa{ function run(form $form, $a=null, $b=null) { var_dump($form->st()); echo "$a $b\n"; } } class b extends a { function run(form $form, state $state=null, $a=null, $b=null) { parent::run($form, $a, $b); var_dump($state->st()); } } $form = new form(); $state = new state(); $b = new b(); $b->run($form, $state, 1, 2);

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.5.10.0100.00716.77
8.5.00.0200.00919.81
8.4.150.0020.00014.05
8.4.140.0130.00817.50
8.4.130.0130.00918.96
8.4.120.0120.00820.59
8.4.110.0130.00622.43
8.4.100.0100.00718.64
8.4.90.0120.00818.97
8.4.80.0140.00618.69
8.4.70.0090.01118.08
8.4.60.0080.01018.91
8.4.50.0060.00318.77
8.4.40.0130.00617.64
8.4.30.0130.00717.54
8.4.20.0100.01019.42
8.4.10.0070.01317.63
8.3.280.0130.00720.06
8.3.270.0100.00916.71
8.3.260.0070.01216.85
8.3.250.0110.00818.73
8.3.240.0100.00917.09
8.3.230.0120.00816.48
8.3.220.0090.00919.03
8.3.210.0060.00218.57
8.3.200.0050.00416.54
8.3.190.0100.00817.01
8.3.180.0120.00817.07
8.3.170.0200.00020.78
8.3.160.0030.00517.21
8.3.150.0080.00017.09
8.3.140.0160.00316.92
8.3.130.0080.00016.61
8.3.120.0090.00620.72
8.3.110.0120.00320.94
8.3.100.0160.00324.06
8.3.90.0040.00426.77
8.3.80.0030.00618.43
8.3.70.0080.00818.43
8.3.60.0120.00616.75
8.3.50.0110.00817.40
8.3.40.0040.01118.54
8.3.30.0090.00618.67
8.3.20.0080.00021.89
8.3.10.0040.00421.90
8.3.00.0000.00821.85
8.2.290.0120.00620.52
8.2.280.0120.00718.38
8.2.270.0120.00616.87
8.2.260.0000.00916.70
8.2.250.0030.00618.53
8.2.240.0080.00017.00
8.2.230.0090.00322.58
8.2.220.0070.00437.54
8.2.210.0040.00426.77
8.2.200.0030.00616.75
8.2.190.0070.00716.63
8.2.180.0070.01118.13
8.2.170.0070.01022.96
8.2.160.0100.00322.12
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00420.94
8.2.120.0040.00426.35
8.2.110.0100.00020.43
8.2.100.0080.00417.72
8.2.90.0060.00317.91
8.2.80.0000.00818.09
8.2.70.0080.00017.80
8.2.60.0040.00417.90
8.2.50.0020.00518.22
8.2.40.0000.00720.29
8.2.30.0070.00019.29
8.2.20.0000.00717.98
8.2.10.0070.00017.88
8.2.00.0000.00717.91
8.1.330.0100.00921.74
8.1.320.0120.00815.98
8.1.310.0060.00318.55
8.1.300.0040.00718.36
8.1.290.0070.00330.84
8.1.280.0060.00925.92
8.1.270.0070.00023.98
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0080.00023.97
8.1.230.0030.01020.89
8.1.220.0060.00317.74
8.1.210.0000.00818.97
8.1.200.0060.00317.23
8.1.190.0080.00017.23
8.1.180.0030.00518.10
8.1.170.0000.00918.90
8.1.160.0000.00718.81
8.1.150.0000.00818.82
8.1.140.0000.00717.52
8.1.130.0000.00720.14
8.1.120.0000.00717.41
8.1.110.0040.00417.37
8.1.100.0070.00017.27
8.1.90.0000.00717.31
8.1.80.0090.00017.29
8.1.70.0040.00417.40
8.1.60.0060.00317.45
8.1.50.0040.00417.46
8.1.40.0060.00317.36
8.1.30.0060.00317.58
8.1.20.0060.00617.52
8.1.10.0030.00617.29
8.1.00.0000.00717.37
8.0.300.0000.00720.26
8.0.290.0040.00416.63
8.0.280.0030.00318.45
8.0.270.0040.00417.15
8.0.260.0000.00617.19
8.0.250.0080.00316.89
8.0.240.0030.00516.96
8.0.230.0050.00316.96
8.0.220.0040.00416.89
8.0.210.0030.00316.77
8.0.200.0040.00416.95
8.0.190.0070.00416.97
8.0.180.0000.00716.77
8.0.170.0030.00616.97
8.0.160.0030.00316.91
8.0.150.0040.00416.82
8.0.140.0050.00316.80
8.0.130.0050.00013.25
8.0.120.0030.00516.90
8.0.110.0050.00216.89
8.0.100.0040.00416.88
8.0.90.0000.00716.77
8.0.80.0090.00616.88
8.0.70.0040.00416.96
8.0.60.0000.00816.78
8.0.50.0040.00416.98
8.0.30.0110.00816.98
8.0.20.0170.01617.40
8.0.10.0040.00416.94
8.0.00.0070.01016.64
7.4.330.0000.00615.55
7.4.320.0030.00316.53
7.4.300.0000.00616.53
7.4.290.0000.00716.42
7.4.280.0070.00016.55
7.4.270.0000.00716.55
7.4.260.0000.00716.48
7.4.250.0000.00716.39
7.4.240.0030.00316.47
7.4.230.0000.00716.42
7.4.220.0030.00316.57
7.4.210.0090.00516.58
7.4.200.0050.00316.61
7.4.160.0160.00216.54
7.4.140.0100.00917.86
7.4.130.0060.01216.40
7.4.120.0100.01116.46
7.4.110.0140.00416.46
7.4.100.0170.00716.43
7.4.90.0080.01216.41
7.4.80.0150.01119.39
7.4.70.0060.01616.30
7.4.60.0100.00616.24
7.4.50.0100.00616.17
7.4.40.0140.00316.25
7.4.00.0070.01014.84
7.3.330.0070.00013.18
7.3.320.0000.00613.38
7.3.310.0030.00316.37
7.3.300.0000.00716.32
7.3.290.0070.00016.23
7.3.280.0070.00816.28
7.3.260.0170.01016.46
7.3.240.0050.01416.41
7.3.230.0090.00616.59
7.3.210.0120.00316.57
7.3.200.0160.00016.74
7.3.190.0100.00716.42
7.3.180.0090.00616.39
7.3.170.0120.00916.53
7.3.160.0110.01116.61
7.3.10.0070.00716.19
7.3.00.0070.00716.55
7.2.330.0100.00716.34
7.2.320.0120.00616.48
7.2.310.0090.00916.57
7.2.300.0000.01716.63
7.2.290.0160.00716.35
7.2.130.0070.01016.76
7.2.120.0030.01016.38
7.2.110.0070.00716.70
7.2.100.0080.00016.80
7.2.90.0040.01116.55
7.2.80.0040.00816.79
7.2.70.0000.00816.52
7.2.60.0060.01016.41
7.2.50.0010.00916.84
7.2.40.0560.01417.25
7.2.30.0740.00917.25
7.2.20.0620.00917.24
7.2.10.0560.00917.26
7.2.00.0570.00817.40
7.1.250.0000.00815.66
7.1.200.0040.01215.89
7.1.160.1450.01216.66
7.1.150.1190.01016.73
7.1.140.1360.01016.35
7.1.130.1050.00816.89
7.1.120.0870.01216.70
7.1.110.0880.01016.17
7.1.100.1000.00916.47
7.1.90.1810.01216.30
7.1.80.1210.01015.91
7.1.70.1150.00515.33
7.1.60.1320.00833.16
7.1.50.1450.01632.82
7.1.40.1800.01632.61
7.1.30.1710.01132.93
7.1.20.1500.01632.64
7.1.10.1230.00914.84
7.1.00.0890.00715.05

preferences:
35 ms | 403 KiB | 5 Q