3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x { static function a() { // display the current class echo __METHOD__; } static function b($method) { // display the current class with method a above call_user_func($method); $method(); } } (new x)->b(array('self', 'a')); ?>

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.40.0100.00718.64
8.3.30.0090.00618.75
8.3.20.0040.00421.91
8.3.10.0040.00423.39
8.3.00.0050.00323.69
8.2.170.0090.00622.96
8.2.160.0110.00420.57
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0030.00519.64
8.2.120.0040.00426.35
8.2.110.0030.00721.00
8.2.100.0250.00017.64
8.2.90.0080.00017.63
8.2.80.0030.00517.97
8.2.70.0030.00517.80
8.2.60.0000.00718.16
8.2.50.0030.00518.10
8.2.40.0050.00319.17
8.2.30.0030.00519.18
8.2.20.0040.00417.97
8.2.10.0070.00022.46
8.2.00.0030.00519.43
8.1.270.0090.00023.75
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0030.00622.61
8.1.230.0070.00417.83
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0060.00320.30
8.1.180.0000.00818.10
8.1.170.0050.00318.57
8.1.160.0000.00718.74
8.1.150.0050.00218.81
8.1.140.0000.00722.13
8.1.130.0040.00420.11
8.1.120.0040.00417.21
8.1.110.0030.00317.25
8.1.100.0000.00717.16
8.1.90.0000.00717.33
8.1.80.0000.00717.20
8.1.70.0050.00317.27
8.1.60.0000.00817.45
8.1.50.0090.00017.38
8.1.40.0000.00817.45
8.1.30.0000.00817.64
8.1.20.0060.00617.40
8.1.10.0000.00717.37
8.1.00.0000.00717.40
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0070.00018.42
8.0.270.0030.00317.26
8.0.260.0000.00618.36
8.0.250.0000.00716.98
8.0.240.0000.00616.88
8.0.230.0030.00316.95
8.0.220.0040.00416.91
8.0.210.0030.00516.82
8.0.200.0000.00616.84
8.0.190.0040.00416.88
8.0.180.0080.00016.95
8.0.170.0090.00016.90
8.0.160.0070.00016.91
8.0.150.0000.00916.75
8.0.140.0080.00016.83
8.0.130.0000.00613.25
8.0.120.0070.00016.87
8.0.110.0040.00416.91
8.0.100.0000.00716.79
8.0.90.0050.00216.68
8.0.80.0100.00816.84
8.0.70.0040.00416.94
8.0.60.0050.00216.87
8.0.50.0000.00716.94
8.0.30.0070.01217.05
8.0.20.0150.00417.11
8.0.10.0030.00516.76
8.0.00.0090.00916.83
7.4.330.0000.00516.89
7.4.320.0030.00316.54
7.4.300.0030.00316.56
7.4.290.0030.00316.55
7.4.280.0000.00916.58
7.4.270.0000.00916.61
7.4.260.0000.00716.51
7.4.250.0080.00016.57
7.4.240.0050.00316.42
7.4.230.0000.00716.44
7.4.220.0000.00816.52
7.4.210.0080.00616.55
7.4.200.0070.00016.59
7.4.160.0050.01316.54
7.4.140.0160.01217.86
7.4.130.0050.01116.33
7.4.120.0100.01016.61
7.4.110.0100.01316.66
7.4.100.0120.01116.45
7.4.90.0080.00816.40
7.4.80.0070.01019.39
7.4.70.0080.00816.65
7.4.60.0030.01316.46
7.4.50.0060.01116.58
7.4.40.0130.00316.64
7.4.00.0110.00414.97
7.3.330.0000.00513.36
7.3.320.0030.00313.36
7.3.310.0000.00716.38
7.3.300.0030.00316.36
7.3.290.0000.00716.25
7.3.280.0100.00716.30
7.3.260.0110.00716.41
7.3.240.0090.00916.51
7.3.230.0090.01316.57
7.3.210.0070.01116.36
7.3.200.0080.00816.48
7.3.190.0160.00316.41
7.3.180.0090.00616.35
7.3.170.0140.00416.39
7.3.160.0120.00316.29
7.3.120.0030.01514.43
7.3.110.0040.01514.70
7.3.100.0060.00614.59
7.3.90.0130.00314.71
7.3.80.0060.00914.77
7.3.70.0110.00014.78
7.3.60.0040.00814.77
7.3.50.0030.01314.57
7.3.40.0060.00314.66
7.3.30.0110.00414.61
7.3.20.0000.01416.45
7.3.10.0100.00316.35
7.3.00.0170.00715.35
7.2.330.0090.00916.47
7.2.320.0090.00916.68
7.2.310.0070.01116.45
7.2.300.0070.01016.26
7.2.290.0120.00916.35
7.2.240.0040.01114.94
7.2.230.0070.01014.80
7.2.220.0000.01114.69
7.2.210.0030.01314.88
7.2.200.0100.00315.05
7.2.190.0040.01114.72
7.2.180.0060.01014.94
7.2.170.0100.00314.91
7.2.160.0070.01115.12
7.2.150.0030.00616.84
7.2.140.0060.01016.73
7.2.130.0750.00615.63
7.2.120.0200.00615.66
7.2.110.0180.00515.33
7.2.100.0220.00215.47
7.2.90.0110.01215.62
7.2.80.0170.01115.47
7.2.70.0150.01115.71
7.2.60.0200.00515.84
7.2.50.0140.01015.79
7.2.40.0120.00715.92
7.2.30.0120.01015.65
7.2.20.0170.00515.86
7.2.10.0140.00815.71
7.2.00.0160.00515.81
7.1.330.0070.01015.57
7.1.320.0040.00415.36
7.1.310.0150.00315.50
7.1.300.0030.00715.68
7.1.290.0070.00715.73
7.1.280.0030.01015.80
7.1.270.0060.00915.72
7.1.260.0030.00915.75
7.1.250.0210.00114.69
7.0.330.0320.00613.07
5.6.380.0070.00414.04

preferences:
61.66 ms | 400 KiB | 5 Q