3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x { function foo() { print "foo"; } function bar() { $x = array('x', "self::foo"); call_user_func($x); $x(); } } $a = new x; $a->bar(); ?>

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.0140.00318.68
8.3.50.0080.01121.95
8.3.40.0090.00618.93
8.3.30.0140.00019.09
8.3.20.0040.00420.07
8.3.10.0080.00020.48
8.3.00.0060.00319.50
8.2.180.0120.00616.63
8.2.170.0070.00722.96
8.2.160.0100.00320.47
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0060.00326.16
8.2.120.0060.00322.23
8.2.110.0060.00319.39
8.2.100.0070.00417.91
8.2.90.0090.00018.20
8.2.80.0000.00917.97
8.2.70.0000.00817.63
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0000.00818.09
8.2.30.0040.00419.30
8.2.20.0040.00417.61
8.2.10.0080.00018.11
8.2.00.0090.00017.81
8.1.280.0100.01025.92
8.1.270.0030.00623.80
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0000.01022.54
8.1.230.0050.00520.97
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0070.00417.47
8.1.190.0050.00317.35
8.1.180.0000.00718.10
8.1.170.0000.00818.43
8.1.160.0070.00021.93
8.1.150.0040.00418.73
8.1.140.0030.00517.28
8.1.130.0030.00517.81
8.1.120.0060.00317.33
8.1.110.0050.00217.35
8.1.100.0040.00417.39
8.1.90.0050.00217.39
8.1.80.0000.00817.35
8.1.70.0000.00717.38
8.1.60.0060.00317.46
8.1.50.0030.00617.51
8.1.40.0000.00717.40
8.1.30.0030.00617.50
8.1.20.0040.00417.70
8.1.10.0070.00017.58
8.1.00.0040.00417.42
8.0.300.0000.00720.04
8.0.290.0000.00716.75
8.0.280.0080.00018.31
8.0.270.0070.00017.30
8.0.260.0030.00317.30
8.0.250.0000.00716.88
8.0.240.0030.00316.86
8.0.230.0040.00416.96
8.0.220.0070.00016.91
8.0.210.0000.00716.92
8.0.200.0060.00016.86
8.0.190.0040.00416.91
8.0.180.0050.00216.80
8.0.170.0000.00816.93
8.0.160.0070.00016.82
8.0.150.0040.00316.75
8.0.140.0040.00316.73
8.0.130.0030.00313.38
8.0.120.0050.00316.86
8.0.110.0040.00416.90
8.0.100.0040.00416.94
8.0.90.0040.00416.68
8.0.80.0100.00616.83
8.0.70.0040.00416.74
8.0.60.0000.00816.70
8.0.50.0070.00016.94
8.0.30.0110.01017.18
8.0.20.0090.01217.40
8.0.10.0030.00616.88
8.0.00.0120.00616.78
7.4.330.0020.00215.00
7.4.320.0070.00016.38
7.4.300.0000.00616.41
7.4.290.0040.00416.64
7.4.280.0030.00516.42
7.4.270.0020.00516.52
7.4.260.0000.00816.62
7.4.250.0040.00416.46
7.4.240.0000.00816.58
7.4.230.0000.00716.70
7.4.220.0090.00916.68
7.4.210.0070.00716.46
7.4.200.0040.00416.47
7.4.160.0100.00716.55
7.4.150.0200.02317.40
7.4.140.0090.01317.86
7.4.130.0110.00816.43
7.4.120.0110.00616.52
7.4.110.0100.00716.38
7.4.100.0060.01216.45
7.4.90.0090.00916.30
7.4.80.0130.00319.37
7.4.70.0100.00716.38
7.4.60.0120.00416.65
7.4.50.0050.00316.56
7.4.40.0080.00816.55
7.4.30.0130.00416.46
7.4.00.0090.00614.99
7.3.330.0000.00613.35
7.3.320.0030.00313.38
7.3.310.0040.00416.34
7.3.300.0000.00716.40
7.3.290.0090.00916.27
7.3.280.0070.01016.31
7.3.270.0060.01217.40
7.3.260.0200.00416.48
7.3.250.0150.00316.58
7.3.240.0000.01616.36
7.3.230.0130.00716.50
7.3.210.0100.00616.44
7.3.200.0100.01319.39
7.3.190.0090.00616.54
7.3.180.0070.00716.38
7.3.170.0030.01316.55
7.3.160.0110.01116.47
7.3.120.0060.01214.96
7.3.110.0060.00914.64
7.3.100.0060.00914.59
7.3.90.0040.00814.84
7.3.80.0060.00914.61
7.3.70.0100.00014.79
7.3.60.0040.00814.87
7.3.50.0040.00814.98
7.3.40.0000.01014.52
7.3.30.0080.00614.85
7.3.20.0030.00716.80
7.3.10.0090.00416.55
7.3.00.0030.00716.26
7.2.330.0040.01516.36
7.2.320.0070.01416.70
7.2.310.0130.00616.56
7.2.300.0030.01316.55
7.2.290.0040.01216.37
7.2.240.0140.00714.99
7.2.230.0040.01115.16
7.2.220.0030.01414.61
7.2.210.0070.00715.18
7.2.200.0040.01114.68
7.2.190.0000.01215.02
7.2.180.0000.00915.13
7.2.170.0090.00614.94
7.2.160.0040.00915.07
7.2.150.0060.00616.73
7.2.140.0040.01116.64
7.2.130.0030.00716.83
7.2.120.0090.00516.51
7.2.110.0070.00716.75
7.2.100.0080.00516.75
7.2.90.0090.00416.68
7.2.80.0020.01216.94
7.2.70.0050.00616.73
7.2.60.0040.00816.79
7.2.50.0070.00516.64
7.2.40.0060.00716.90
7.2.30.0090.00616.67
7.2.20.0090.00816.82
7.2.10.0080.00516.84
7.2.00.0060.00817.70
7.1.330.0090.00615.63
7.1.320.0060.00915.37
7.1.310.0060.00615.52
7.1.300.0070.00715.41
7.1.290.0040.00815.61
7.1.280.0120.00315.73
7.1.270.0180.00015.59
7.1.260.0070.01015.82
7.1.250.0030.00615.39
7.1.200.0070.00415.75
7.1.100.0030.00618.10
7.1.70.0030.00516.73
7.1.60.0100.01419.32
7.1.50.0090.01316.77
7.1.00.0070.07022.28
7.0.200.0030.00716.87
7.0.140.0100.06722.00
7.0.60.0030.07021.66
7.0.50.0030.07717.88
7.0.40.0130.07720.05
7.0.30.0230.08020.33
7.0.20.0270.07720.33
7.0.10.0070.06720.24
7.0.00.0130.08320.29
5.6.280.0000.07721.15
5.6.210.0070.03720.47
5.6.200.0030.07018.19
5.6.190.0030.05320.47
5.6.180.0430.03320.63
5.6.170.0300.06320.56
5.6.160.0030.08320.46
5.6.150.0000.06018.22
5.6.140.0170.03718.11
5.6.130.0070.08018.25
5.6.120.0130.08020.74
5.6.110.0030.08321.11
5.6.100.0100.08720.98
5.6.90.0070.06321.10
5.6.80.0030.04720.39
5.5.350.0330.06020.41
5.5.340.0000.04318.07
5.5.330.0070.08020.39
5.5.320.0400.06720.51
5.5.310.0200.04320.41
5.5.300.0100.06317.97
5.5.290.0100.05017.91
5.5.280.0130.06720.77
5.5.270.0070.06020.95
5.5.260.0000.04720.68
5.5.250.0100.06720.60
5.5.240.0030.05720.15
5.4.450.0130.03719.64
5.4.440.0200.05319.61
5.4.430.0270.05019.60
5.4.420.0730.00019.39
5.4.410.0670.00019.52
5.4.400.0630.00019.27
5.4.390.0630.00019.08
5.4.380.0300.06018.46
5.4.370.0330.05018.74
5.4.360.0400.04718.75
5.4.350.0430.05018.69
5.4.340.0300.05018.47
5.4.320.0040.03812.50
5.4.310.0080.03612.50
5.4.300.0050.03712.50
5.4.290.0050.03812.50
5.4.280.0080.03212.39
5.4.270.0070.03412.39
5.4.260.0070.03512.40
5.4.250.0050.03712.39
5.4.240.0070.03412.40
5.4.230.0070.03612.39
5.4.220.0050.03612.39
5.4.210.0050.03612.38
5.4.200.0060.03612.39
5.4.190.0080.04612.38
5.4.180.0090.04012.38
5.4.170.0080.03312.39
5.4.160.0070.03412.39
5.4.150.0070.03412.39
5.4.140.0060.03612.07
5.4.130.0040.03712.06
5.4.120.0060.03512.02
5.4.110.0060.03912.02
5.4.100.0050.03512.01
5.4.90.0100.03312.02
5.4.80.0040.03812.02
5.4.70.0080.03312.01
5.4.60.0050.03612.01
5.4.50.0070.03412.01
5.4.40.0090.04212.00
5.4.30.0060.03411.99
5.4.20.0070.03711.99
5.4.10.0050.03511.99
5.4.00.0060.03511.48
5.3.290.0060.04212.80
5.3.280.0080.04312.71
5.3.270.0050.03912.72
5.3.260.0090.03512.72
5.3.250.0050.03812.72
5.3.240.0060.03712.71
5.3.230.0070.03612.71
5.3.220.0080.03512.68
5.3.210.0090.03512.68
5.3.200.0080.04112.68
5.3.190.0060.03612.68
5.3.180.0050.03712.67
5.3.170.0060.04312.67
5.3.160.0080.03312.67
5.3.150.0030.03912.67
5.3.140.0070.03812.66
5.3.130.0040.04012.66
5.3.120.0060.03812.66
5.3.110.0070.03612.66
5.3.100.0070.03412.13
5.3.90.0060.03512.10
5.3.80.0090.03212.10
5.3.70.0080.03312.10
5.3.60.0060.03612.08
5.3.50.0030.04312.04
5.3.40.0100.03212.04
5.3.30.0080.03311.98
5.3.20.0070.03311.77
5.3.10.0050.03511.73
5.3.00.0080.03711.73
5.2.170.0070.0359.23
5.2.160.0070.0289.23
5.2.150.0040.0319.22
5.2.140.0030.0329.23
5.2.130.0060.0279.19
5.2.120.0030.0309.19
5.2.110.0070.0269.19
5.2.100.0040.0289.19
5.2.90.0050.0289.18
5.2.80.0070.0299.18
5.2.70.0060.0319.18
5.2.60.0040.0319.13
5.2.50.0030.0339.10
5.2.40.0030.0309.07
5.2.30.0050.0299.05
5.2.20.0040.0309.04
5.2.10.0060.0268.96
5.2.00.0040.0298.81
5.1.60.0040.0248.09
5.1.50.0030.0258.09
5.1.40.0020.0268.07
5.1.30.0080.0268.42
5.1.20.0030.0308.45
5.1.10.0070.0278.17
5.1.00.0030.0268.17
5.0.50.0040.0216.64
5.0.40.0030.0256.51
5.0.30.0040.0316.32
5.0.20.0030.0196.28
5.0.10.0040.0196.27
5.0.00.0030.0346.26
4.4.90.0030.0174.78
4.4.80.0020.0184.76
4.4.70.0060.0134.75
4.4.60.0080.0164.75
4.4.50.0020.0194.77
4.4.40.0040.0264.71
4.4.30.0040.0154.76
4.4.20.0030.0164.85
4.4.10.0070.0114.85
4.4.00.0010.0274.76
4.3.110.0020.0174.67
4.3.100.0030.0164.66
4.3.90.0040.0144.63
4.3.80.0050.0264.59
4.3.70.0030.0154.63
4.3.60.0040.0134.63
4.3.50.0030.0154.63
4.3.40.0060.0214.54
4.3.30.0030.0203.30
4.3.20.0030.0203.28
4.3.10.0030.0333.24
4.3.00.0030.01315.62

preferences:
38.3 ms | 401 KiB | 5 Q