3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function run() { return call_user_func(array('Bar', 'getValue')); } private static function getValue() { return 'Foo'; } } class Bar extends Foo { public static function getValue() { return 'Bar'; } } $x = new Bar; $x->run();

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.0040.01216.63
8.3.50.0110.00321.98
8.3.40.0070.00718.84
8.3.30.0070.00718.88
8.3.20.0070.00720.29
8.3.10.0040.00423.60
8.3.00.0040.00421.02
8.2.180.0190.00316.63
8.2.170.0140.00022.96
8.2.160.0140.00320.43
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.01126.16
8.2.120.0030.00519.77
8.2.110.0060.00322.20
8.2.100.0120.00017.91
8.2.90.0040.00419.08
8.2.80.0080.00017.97
8.2.70.0060.00317.35
8.2.60.0110.00017.93
8.2.50.0040.00418.07
8.2.40.0000.00919.88
8.2.30.0060.00318.23
8.2.20.0000.00817.61
8.2.10.0070.00017.86
8.2.00.0000.00717.60
8.1.280.0030.01025.92
8.1.270.0030.00522.05
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0080.00023.84
8.1.230.0070.00319.05
8.1.220.0030.00617.74
8.1.210.0100.00018.77
8.1.200.0070.00417.22
8.1.190.0040.00417.22
8.1.180.0080.00018.10
8.1.170.0040.00418.52
8.1.160.0020.00521.96
8.1.150.0040.00418.57
8.1.140.0000.00717.29
8.1.130.0030.00317.86
8.1.120.0050.00217.32
8.1.110.0030.00317.34
8.1.100.0040.00317.29
8.1.90.0080.00017.38
8.1.80.0040.00417.26
8.1.70.0000.00817.35
8.1.60.0070.00317.46
8.1.50.0000.00817.48
8.1.40.0040.00417.39
8.1.30.0080.00017.46
8.1.20.0090.00017.62
8.1.10.0050.00317.50
8.1.00.0040.00417.43
8.0.300.0070.00018.77
8.0.290.0000.00716.63
8.0.280.0030.00318.29
8.0.270.0070.00017.18
8.0.260.0030.00317.08
8.0.250.0000.00716.87
8.0.240.0030.00616.77
8.0.230.0030.00316.88
8.0.220.0030.00316.71
8.0.210.0000.00716.82
8.0.200.0070.00016.71
8.0.190.0000.00816.74
8.0.180.0040.00416.73
8.0.170.0040.00416.74
8.0.160.0040.00416.85
8.0.150.0000.01116.67
8.0.140.0070.00016.76
8.0.130.0050.00013.21
8.0.120.0040.00416.67
8.0.110.0070.00016.74
8.0.100.0070.00016.76
8.0.90.0030.00316.71
8.0.80.0030.01516.82
8.0.70.0040.00416.84
8.0.60.0030.00516.84
8.0.50.0080.00016.75
8.0.30.0130.00616.87
8.0.20.0050.01317.40
8.0.10.0040.00416.83
8.0.00.0130.00816.69
7.4.330.0000.00615.09
7.4.320.0030.00316.45
7.4.300.0030.00316.49
7.4.290.0030.00316.45
7.4.280.0060.00316.58
7.4.270.0040.00416.59
7.4.260.0040.00416.58
7.4.250.0050.00216.59
7.4.240.0040.00316.45
7.4.230.0030.00316.25
7.4.220.0070.01016.59
7.4.210.0130.00316.41
7.4.200.0000.00716.69
7.4.160.0110.00616.49
7.4.150.0070.01017.40
7.4.140.0080.01217.86
7.4.130.0090.00916.43
7.4.120.0130.00716.43
7.4.110.0090.01116.33
7.4.100.0100.01116.59
7.4.90.0060.01116.59
7.4.80.0130.00919.39
7.4.70.0080.01116.29
7.4.60.0110.00516.35
7.4.50.0000.00516.46
7.4.40.0130.00316.36
7.4.30.0090.00616.21
7.4.00.0000.00714.67
7.3.330.0040.00413.20
7.3.320.0000.00613.11
7.3.310.0040.00416.13
7.3.300.0000.00716.13
7.3.290.0110.00316.24
7.3.280.0100.00716.23
7.3.270.0120.00917.40
7.3.260.0070.01016.48
7.3.250.0120.00916.43
7.3.240.0120.00616.18
7.3.230.0070.01016.39
7.3.210.0110.01116.32
7.3.200.0120.00319.39
7.3.190.0120.00916.31
7.3.180.0090.00616.49
7.3.170.0040.01216.47
7.3.160.0120.00416.33
7.3.120.0030.00914.63
7.2.330.0100.00716.25
7.2.320.0120.00616.27
7.2.310.0170.00016.23
7.2.300.0110.00616.48
7.2.290.0150.00516.42
7.2.60.0070.00716.80
7.2.00.0030.00919.13
7.1.200.0000.00815.40
7.1.100.0070.00717.72
7.1.70.0060.00317.00
7.1.60.0100.01419.70
7.1.50.0100.00316.69
7.1.00.0070.07722.43
7.0.200.0000.00816.21
7.0.140.0100.06721.95
7.0.60.0300.07319.92
7.0.50.0170.07317.94
7.0.40.0030.06020.21
7.0.30.0170.04020.06
7.0.20.0170.04020.07
7.0.10.0030.04720.06
7.0.00.0100.08320.16
5.6.280.0030.07321.07
5.6.210.0070.08720.70
5.6.200.0130.07318.16
5.6.190.0170.07720.55
5.6.180.0300.07320.63
5.6.170.0300.03020.50
5.6.160.0130.07720.56
5.6.150.0070.05318.18
5.6.140.0030.04018.25
5.6.130.0000.05018.27
5.6.120.0070.07721.04
5.6.110.0030.06720.98
5.6.100.0170.07721.10
5.6.90.0100.04021.13
5.6.80.0130.07720.48
5.5.350.0170.04320.33
5.5.340.0100.08017.93
5.5.330.0100.08020.40
5.5.320.0530.04720.34
5.5.310.0330.07320.27
5.5.300.0030.04017.95
5.5.290.0030.06318.04
5.5.280.0100.08020.97
5.5.270.0000.08020.98
5.5.260.0070.08320.77
5.5.250.0030.09020.46
5.5.240.0300.05720.27
5.4.450.0570.04819.29
5.4.440.1880.05019.33
5.4.430.0270.05219.39
5.4.420.0430.05019.30
5.4.410.0430.04819.34
5.4.400.0450.04319.10
5.4.390.0320.05819.05
5.4.380.0550.06718.78
5.4.370.0420.05318.79
5.4.360.0450.05018.95
5.4.350.0340.05015.59
5.4.340.0420.04615.59
5.4.320.0350.05215.82
5.4.310.0350.04515.82
5.4.300.0350.05214.66
5.4.290.0390.04814.72
5.4.280.0270.06014.61
5.4.270.0330.05514.53
5.4.260.0360.05014.55
5.4.250.0150.06814.64
5.4.240.0180.04814.65
5.4.230.0350.04914.66
5.4.220.0340.05214.64
5.4.210.0270.05014.65
5.4.200.0320.04814.56
5.4.190.0300.04914.60
5.4.180.0280.05914.58
5.4.170.0260.05614.62
5.4.160.0290.05214.63
5.4.150.0350.05714.63
5.4.140.0370.05613.55
5.4.130.0340.04913.53
5.4.120.0390.06813.52
5.4.110.0370.05113.54
5.4.100.0350.04113.40
5.4.90.0330.04913.50
5.4.80.0270.04913.46
5.4.70.0280.04713.54
5.4.60.0330.05013.47
5.4.50.0310.04413.49
5.4.40.0390.04713.37
5.4.30.0400.05413.49
5.4.20.0330.05113.48
5.4.10.0340.06813.46
5.4.00.0280.06912.94
5.3.290.0400.04913.72
5.3.280.0340.05913.33
5.3.270.0280.05413.40
5.3.260.0280.05213.35
5.3.250.0360.05213.35
5.3.240.0300.05113.33
5.3.230.0380.04813.33
5.3.220.0390.05213.24
5.3.210.0360.06013.31
5.3.200.0370.05413.31
5.3.190.0370.05913.31
5.3.180.0280.05213.24
5.3.170.0360.05513.34
5.3.160.0320.05213.35
5.3.150.0300.05113.29
5.3.140.0290.04513.30
5.3.130.0330.05313.29
5.3.120.0350.04713.22
5.3.110.0280.05013.27
5.3.100.0150.04512.77
5.3.90.0080.05112.75
5.3.80.0120.04912.75
5.3.70.0080.04812.73
5.3.60.0080.04812.74
5.3.50.0110.04912.67
5.3.40.0100.04812.67
5.3.30.0270.04312.64
5.3.20.0270.04712.45
5.3.10.0290.05712.31

preferences:
45.47 ms | 401 KiB | 5 Q