3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); class a { function a() { echo "CONSTRUCTOR CALLED\r\n"; } function b($var) { return $var . 'x'; } } print_r(array_map(array('a', 'b'), array('a', 'b'))); echo "hogehoge\r\n";

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.01018.92
8.3.30.0070.00719.05
8.3.20.0060.00320.16
8.3.10.0040.00423.70
8.3.00.0040.00419.38
8.2.170.0100.01022.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0060.00321.04
8.2.110.0030.00620.43
8.2.100.0080.00419.64
8.2.90.0000.00818.22
8.2.80.0060.00317.97
8.2.70.0090.00017.75
8.2.60.0000.01017.67
8.2.50.0030.00618.07
8.2.40.0040.00418.09
8.2.30.0000.00817.98
8.2.20.0060.00317.79
8.2.10.0040.00418.00
8.2.00.0000.00717.60
8.1.270.0000.00823.97
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00422.14
8.1.230.0040.00820.95
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0070.00317.35
8.1.190.0040.00417.22
8.1.180.0030.00618.10
8.1.170.0050.00318.53
8.1.160.0040.00421.94
8.1.150.0070.00018.82
8.1.140.0040.00417.36
8.1.130.0000.00717.63
8.1.120.0000.00817.37
8.1.110.0040.00417.22
8.1.100.0030.00317.23
8.1.90.0040.00417.36
8.1.80.0040.00417.32
8.1.70.0030.00317.21
8.1.60.0030.00517.42
8.1.50.0000.00817.38
8.1.40.0030.00617.45
8.1.30.0040.00417.36
8.1.20.0060.00317.53
8.1.10.0040.00417.58
8.1.00.0000.00717.41
8.0.300.0040.00419.87
8.0.290.0050.00216.75
8.0.280.0040.00418.38
8.0.270.0030.00517.11
8.0.260.0000.00617.11
8.0.250.0030.00316.87
8.0.240.0070.00016.96
8.0.230.0000.00716.83
8.0.220.0000.00716.88
8.0.210.0040.00416.90
8.0.200.0000.00716.95
8.0.190.0030.00316.86
8.0.180.0060.00316.80
8.0.170.0060.00316.89
8.0.160.0030.00316.84
8.0.150.0070.00016.72
8.0.140.0040.00316.79
8.0.130.0050.00013.39
8.0.120.0050.00316.86
8.0.110.0030.00416.95
8.0.100.0000.00716.83
8.0.90.0000.00716.79
8.0.80.0130.01016.88
8.0.70.0000.00716.79
8.0.60.0000.00716.91
8.0.50.0030.00316.93
8.0.30.0130.00516.79
8.0.20.0100.01017.40
8.0.10.0030.00516.91
8.0.00.0110.00616.78
7.4.330.0030.00315.03
7.4.320.0030.00316.24
7.4.300.0030.00316.59
7.4.290.0030.00316.47
7.4.280.0070.00016.35
7.4.270.0000.00716.43
7.4.260.0000.00716.55
7.4.250.0000.00716.41
7.4.240.0030.00516.43
7.4.230.0000.00716.52
7.4.220.0160.00616.64
7.4.210.0190.00016.58
7.4.200.0070.00016.52
7.4.160.0120.00316.74
7.4.150.0160.00717.40
7.4.140.0090.00917.86
7.4.130.0120.00816.45
7.4.120.0100.00816.56
7.4.110.0110.00716.47
7.4.100.0100.01316.29
7.4.90.0110.00716.56
7.4.80.0100.00719.39
7.4.70.0000.01716.72
7.4.60.0100.01016.46
7.4.50.0000.00416.59
7.4.40.0040.01216.44
7.4.30.0090.00616.54
7.4.00.0050.01114.92
7.3.330.0000.00513.13
7.3.320.0060.00013.29
7.3.310.0000.00716.30
7.3.300.0030.00316.18
7.3.290.0090.00616.27
7.3.280.0080.00716.29
7.3.270.0060.01317.40
7.3.260.0100.01016.34
7.3.250.0080.01116.31
7.3.240.0070.01016.51
7.3.230.0100.00716.39
7.3.210.0070.01116.15
7.3.200.0060.01219.39
7.3.190.0070.01416.32
7.3.180.0000.01616.23
7.3.170.0060.01016.37
7.3.160.0060.00916.38
7.3.120.0050.01114.69
7.3.110.0070.00814.89
7.3.100.0050.01014.73
7.3.90.0090.00514.64
7.3.80.0060.00614.81
7.3.70.0060.00714.79
7.3.60.0050.01014.72
7.3.50.0060.00714.67
7.3.40.0030.00914.65
7.3.30.0030.00714.67
7.3.20.0050.00716.56
7.3.10.0040.00916.44
7.3.00.0080.00616.59
7.2.330.0140.00516.52
7.2.320.0040.01316.34
7.2.310.0060.01216.64
7.2.300.0090.00916.52
7.2.290.0030.01416.50
7.2.250.0060.01414.90
7.2.240.0060.01114.97
7.2.230.0090.00815.01
7.2.220.0090.00514.90
7.2.210.0070.00614.97
7.2.200.0050.00914.93
7.2.190.0040.00814.75
7.2.180.0090.00514.94
7.2.170.0050.01014.88
7.2.160.0030.01314.95
7.2.150.0030.01016.86
7.2.140.0060.00616.87
7.2.130.0000.01816.84
7.2.120.0080.00416.70
7.2.110.0030.01016.99
7.2.100.0070.00716.89
7.2.90.0030.01416.69
7.2.80.0080.00617.02
7.2.70.0070.00716.81
7.2.60.0030.01117.00
7.2.50.0060.00916.96
7.2.40.0070.01116.86
7.2.30.0040.01116.74
7.2.20.0040.00716.71
7.2.10.0070.00716.71
7.2.00.0000.01318.22
7.1.330.0070.00715.54
7.1.320.0060.00715.65
7.1.310.0080.00615.67
7.1.300.0060.00815.69
7.1.290.0040.00815.71
7.1.280.0070.00915.67
7.1.270.0050.00815.60
7.1.260.0050.00815.61
7.1.250.0090.00315.66
7.1.200.0080.00815.43
7.1.100.0000.01218.02
7.1.70.0060.00317.00
7.1.60.0070.01719.46
7.1.50.0070.01416.85
7.1.00.0000.07722.40
7.0.200.0000.00816.73
7.0.140.0070.07022.08
7.0.110.0000.04719.86
7.0.100.0100.08020.07
7.0.90.0000.04319.89
7.0.80.0030.08719.91
7.0.70.0030.08720.03
7.0.60.0100.08320.08
7.0.50.0070.04720.03
7.0.40.0100.08019.73
7.0.30.0070.05319.79
7.0.20.0070.08019.69
7.0.10.0070.06019.78
7.0.00.0070.05019.68
5.6.280.0070.07020.99
5.6.260.0070.03320.68
5.6.250.0030.04020.68
5.6.240.0170.07020.72
5.6.230.0030.04320.57
5.6.220.0070.08320.66
5.6.210.0070.08020.70
5.6.200.0170.07320.48
5.6.190.0030.08720.56
5.6.180.0100.05020.63
5.6.170.0070.08320.55
5.6.160.0000.05020.63
5.6.150.0000.05720.66
5.6.140.0130.07720.61
5.6.130.0070.08720.55
5.6.120.0030.09020.71
5.6.110.0130.07020.69
5.6.100.0030.10020.64
5.6.90.0130.08020.69
5.6.80.0070.07720.03
5.6.70.0030.07020.05
5.6.60.0070.05720.06
5.6.50.0030.04720.01
5.6.40.0030.08019.98
5.6.30.0100.04020.00
5.6.20.0070.08019.97
5.6.10.0070.08020.00
5.6.00.0170.06719.82
5.5.380.0100.05317.54
5.5.370.0030.07717.59
5.5.360.0070.08017.55
5.5.350.0070.04317.65
5.5.340.0070.07717.96
5.5.330.0070.06717.84
5.5.320.0130.07017.93
5.5.310.0070.08017.91
5.5.300.0070.06717.92
5.5.290.0030.08718.14
5.5.280.0130.05718.25
5.5.270.0100.07318.12
5.5.260.0070.08018.11
5.5.250.0030.08317.64
5.5.240.0000.08717.49
5.5.230.0130.07017.30
5.5.220.0130.06717.47
5.5.210.0070.07317.63
5.5.200.0130.06717.42
5.5.190.0100.07717.28
5.5.180.0070.05017.45
5.5.160.0000.07017.40
5.5.150.0030.08017.18
5.5.140.0070.08317.57
5.5.130.0130.07017.45
5.5.120.0170.05717.60
5.5.110.0030.08017.47
5.5.100.0000.07717.33
5.5.90.0170.06317.40
5.5.80.0130.06717.50
5.5.70.0030.08017.33
5.5.60.0100.07317.36
5.5.50.0070.06317.11
5.5.40.0070.07317.34
5.5.30.0030.08017.17
5.5.20.0000.08717.36
5.5.10.0030.06317.16
5.5.00.0070.07717.11
5.4.450.0000.08319.34
5.4.440.0070.08719.34
5.4.430.0070.08319.34
5.4.420.0100.07319.31
5.4.410.0130.07319.43
5.4.400.0030.07019.32
5.4.390.0100.07019.14
5.4.380.0130.07019.14
5.4.370.0070.07318.95
5.4.360.0030.08019.09
5.4.350.0000.05319.16
5.4.340.0030.06719.22
5.4.320.0030.08019.14
5.4.310.0100.07719.24
5.4.300.0130.07319.18
5.4.290.0030.04719.13
5.4.280.0030.06719.22
5.4.270.0000.05719.18
5.4.260.0070.07319.14
5.4.250.0070.06019.13
5.4.240.0030.07319.17
5.4.230.0170.05719.16
5.4.220.0030.08019.22
5.4.210.0070.07018.98
5.4.200.0030.07719.32
5.4.190.0070.06019.32
5.4.180.0130.07319.16
5.4.170.0030.07718.95
5.4.160.0070.04319.14
5.4.150.0070.08019.29
5.4.140.0100.05716.39
5.4.130.0100.07316.54
5.4.120.0030.07016.52
5.4.110.0070.07316.59
5.4.100.0170.05716.55
5.4.90.0070.05316.47
5.4.80.0070.06316.50
5.4.70.0030.07316.51
5.4.60.0000.08016.45
5.4.50.0130.06316.54
5.4.40.0070.07016.55
5.4.30.0070.06716.40
5.4.20.0100.07016.38
5.4.10.0030.08016.23
5.4.00.0000.07315.77
5.3.290.0070.08014.65
5.3.280.0030.07314.74
5.3.270.0100.07014.74
5.3.260.0000.08314.70
5.3.250.0100.07714.69
5.3.240.0030.07314.83
5.3.230.0170.06014.70
5.3.220.0070.08314.71
5.3.210.0070.06314.65
5.3.200.0070.07714.57
5.3.190.0030.04014.71
5.3.180.0000.04314.59
5.3.170.0000.07714.54
5.3.160.0030.03314.69
5.3.150.0030.07714.65
5.3.140.0100.03314.66
5.3.130.0070.07014.55
5.3.120.0000.08314.51
5.3.110.0070.07014.54
5.3.100.0030.07714.02
5.3.90.0100.07014.04
5.3.80.0030.07714.02
5.3.70.0030.07013.98
5.3.60.0130.06314.00
5.3.50.0230.05713.96
5.3.40.0100.07014.07
5.3.30.0000.06314.05
5.3.20.0170.06313.78
5.3.10.0070.06713.74
5.3.00.0030.07313.65
5.2.170.0030.06311.12
5.2.160.0000.06311.15
5.2.150.0030.05311.29
5.2.140.0070.04011.16
5.2.130.0100.05711.11
5.2.120.0130.04711.33
5.2.110.0030.05711.09
5.2.100.0030.06010.96
5.2.90.0000.06711.09
5.2.80.0030.06011.09
5.2.70.0000.06711.09
5.2.60.0030.05311.09
5.2.50.0000.03011.02
5.2.40.0030.06010.98
5.2.30.0030.06311.05
5.2.20.0100.03711.09
5.2.10.0000.06310.93
5.2.00.0030.06010.95
5.1.60.0000.0579.99
5.1.50.0070.0509.98
5.1.40.0000.03710.05
5.1.30.0130.04710.41
5.1.20.0030.05710.44
5.1.10.0070.05010.07
5.1.00.0000.05310.33
5.0.50.0030.0479.93
5.0.40.0070.0409.93
5.0.30.0000.0679.93
5.0.20.0000.0379.93
5.0.10.0000.0439.93
5.0.00.0030.0639.93
4.4.90.0030.0279.93
4.4.80.0000.0279.93
4.4.70.0030.0379.93
4.4.60.0070.0239.93
4.4.50.0030.0379.93
4.4.40.0030.0509.93
4.4.30.0070.0309.93
4.4.20.0030.0379.93
4.4.10.0000.0339.93
4.4.00.0100.0439.93
4.3.110.0000.0379.93
4.3.100.0030.0339.93
4.3.90.0100.0279.93
4.3.80.0000.0439.93
4.3.70.0030.0209.93
4.3.60.0030.0379.93
4.3.50.0000.0339.93
4.3.40.0000.0539.93
4.3.30.0030.0339.93
4.3.20.0100.0279.93
4.3.10.0000.0379.93
4.3.00.0000.0339.93

preferences:
42.04 ms | 400 KiB | 5 Q