3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { function bar() { echo "world\n"; } echo "hello, " . bar(); } foo();

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.4.20.0130.00720.39
8.4.10.0000.01017.49
8.3.150.0160.00317.29
8.3.140.0040.01116.55
8.3.130.0040.00418.40
8.3.120.0060.00320.73
8.3.110.0130.00616.80
8.3.100.0080.00024.06
8.3.90.0080.00026.77
8.3.80.0090.00018.31
8.3.70.0180.00318.56
8.3.60.0150.00318.36
8.3.50.0130.00218.01
8.3.40.0110.00418.76
8.3.30.0100.00318.71
8.3.20.0050.00219.13
8.3.10.0030.00523.64
8.3.00.0040.00422.58
8.2.270.0000.00818.47
8.2.260.0000.01418.61
8.2.250.0040.00418.23
8.2.240.0120.00618.90
8.2.230.0040.01120.94
8.2.220.0000.00937.54
8.2.210.0040.00426.77
8.2.200.0060.00316.38
8.2.190.0100.00716.58
8.2.180.0040.01118.04
8.2.170.0110.00422.96
8.2.160.0100.00321.11
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0000.00822.22
8.2.120.0080.00426.35
8.2.110.0030.00620.96
8.2.100.0080.00417.55
8.2.90.0040.00420.42
8.2.80.0000.00817.97
8.2.70.0030.00617.80
8.2.60.0030.00518.09
8.2.50.0080.00018.10
8.2.40.0040.00419.35
8.2.30.0040.00420.63
8.2.20.0030.00518.00
8.2.10.0040.00417.99
8.2.00.0040.00419.23
8.1.310.0040.01118.59
8.1.300.0110.00718.44
8.1.290.0040.00430.84
8.1.280.0110.00425.92
8.1.270.0070.00020.75
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0100.00719.09
8.1.230.0080.00320.85
8.1.220.0030.00517.74
8.1.210.0030.00518.84
8.1.200.0040.00417.10
8.1.190.0050.00317.11
8.1.180.0000.00718.10
8.1.170.0040.00418.50
8.1.160.0000.00818.77
8.1.150.0040.00418.80
8.1.140.0000.00719.00
8.1.130.0040.00418.84
8.1.120.0070.00017.45
8.1.110.0050.00217.27
8.1.100.0040.00417.34
8.1.90.0050.00317.32
8.1.80.0030.00517.43
8.1.70.0000.00717.40
8.1.60.0030.00617.43
8.1.50.0130.00817.45
8.1.40.0000.00817.38
8.1.30.0040.00417.53
8.1.20.0000.00717.54
8.1.10.0000.00817.34
8.1.00.0040.00417.30
8.0.300.0100.00019.88
8.0.290.0040.00416.63
8.0.280.0040.00418.30
8.0.270.0030.00317.08
8.0.260.0070.00020.17
8.0.250.0070.00016.92
8.0.240.0000.00816.90
8.0.230.0040.00416.76
8.0.220.0000.00716.82
8.0.210.0000.00816.86
8.0.200.0070.00016.95
8.0.190.0070.00016.90
8.0.180.0060.00316.82
8.0.170.0050.00316.82
8.0.160.0040.00416.81
8.0.150.0000.00716.75
8.0.140.0030.00316.71
8.0.130.0050.00013.33
8.0.120.0030.00616.79
8.0.110.0040.00416.68
8.0.100.0070.00016.73
8.0.90.0080.00016.73
8.0.80.0060.01116.79
8.0.70.0000.00716.76
8.0.60.0040.00416.71
8.0.50.0070.00016.66
8.0.30.0120.00816.97
8.0.20.0110.00817.40
8.0.10.0000.00817.02
8.0.00.0100.00816.78
7.4.330.0050.00015.55
7.4.320.0000.00616.33
7.4.300.0060.00016.52
7.4.290.0000.00716.57
7.4.280.0080.00016.52
7.4.270.0030.00316.35
7.4.260.0050.00216.49
7.4.250.0000.00716.39
7.4.240.0070.00016.48
7.4.230.0040.00416.48
7.4.220.0030.00316.33
7.4.210.0080.00816.43
7.4.200.0000.00816.52
7.4.160.0080.01016.43
7.4.140.0110.01017.86
7.4.130.0170.00016.34
7.4.120.0070.01116.43
7.4.110.0060.01216.42
7.4.100.0100.01016.45
7.4.90.0140.00716.48
7.4.80.0060.01219.39
7.4.70.0170.00016.62
7.4.60.0100.00616.39
7.4.50.0040.01116.24
7.4.40.0130.01016.65
7.4.10.0080.00914.54
7.4.00.0070.00814.87
7.3.330.0030.00313.23
7.3.320.0070.00013.14
7.3.310.0030.00316.10
7.3.300.0020.00516.11
7.3.290.0000.00716.24
7.3.280.0070.00716.15
7.3.260.0100.01116.41
7.3.240.0120.00716.38
7.3.230.0080.00916.55
7.3.210.0120.01216.25
7.3.200.0080.00816.17
7.3.190.0100.00716.59
7.3.180.0080.01116.30
7.3.170.0130.00916.29
7.3.160.0090.00616.30
7.3.130.0050.01014.90
7.3.120.0080.00914.91
7.3.110.0100.00914.71
7.3.100.0070.00714.81
7.3.90.0080.00514.89
7.3.80.0050.00814.66
7.3.70.0080.00614.64
7.3.60.0020.01214.64
7.3.50.0030.00814.65
7.3.40.0040.00714.65
7.3.30.0060.00314.58
7.3.20.0060.00516.58
7.3.10.0080.00416.68
7.3.00.0060.00616.54
7.2.330.0120.00916.66
7.2.320.0110.00616.62
7.2.310.0070.01116.64
7.2.300.0150.00316.46
7.2.290.0040.01216.67
7.2.260.0050.01414.74
7.2.250.0070.01214.90
7.2.240.0090.00515.13
7.2.230.0100.00615.03
7.2.220.0050.00914.86
7.2.210.0080.00515.18
7.2.200.0070.00715.00
7.2.190.0060.00614.80
7.2.180.0080.00714.84
7.2.170.0070.00515.01
7.2.160.0090.00515.11
7.2.150.0030.01216.92
7.2.140.0090.00416.84
7.2.130.0030.01216.95
7.2.120.0050.00816.80
7.2.110.0100.00416.90
7.2.100.0060.00816.88
7.2.90.0860.00715.94
7.2.80.0580.01116.07
7.2.70.0620.01116.13
7.2.60.0660.01216.24
7.2.50.0910.01216.13
7.2.40.0550.00916.20
7.2.30.0690.00916.11
7.2.20.0460.00816.19
7.2.10.0440.00316.01
7.2.00.0390.00916.08
7.1.330.0060.00815.66
7.1.320.0050.00915.72
7.1.310.0010.01015.82
7.1.300.0080.00615.70
7.1.290.0030.00915.69
7.1.280.0020.01015.61
7.1.270.0020.01015.66
7.1.260.0060.00315.77
7.1.250.0050.01015.48
7.1.240.0080.00615.79
7.1.230.0060.00915.78
7.1.220.0030.01215.74
7.1.210.0730.01315.13
7.1.200.0510.00915.06
7.1.190.0900.00615.02
7.1.180.1150.00215.02
7.1.170.0550.00914.80
7.1.160.0460.00814.91
7.1.150.0590.01315.00
7.1.140.0380.01015.04
7.1.130.0400.01115.22
7.1.120.0430.00514.88
7.1.110.0400.00915.06
7.1.100.0470.00814.94
7.1.90.0780.00715.01
7.1.80.0520.00715.04
7.1.70.0580.00814.98
7.1.60.0540.00821.04
7.1.50.0850.01020.97
7.1.40.0960.00821.04
7.1.30.0780.00821.18
7.1.20.0850.00721.07
7.1.10.0680.00914.85
7.1.00.0450.01014.98
7.0.330.0050.00615.14
7.0.320.0050.00815.30
7.0.310.0030.01215.30
7.0.300.0020.00815.28
7.0.290.0100.00515.45
7.0.280.0060.00415.24
7.0.270.0040.00815.38
7.0.260.0040.00915.45
7.0.250.0100.00215.44
7.0.240.0080.00515.27
7.0.230.0050.00715.48
7.0.220.0030.00915.24
7.0.210.0050.01015.29
7.0.200.0040.00815.32
7.0.190.0050.00815.36
7.0.180.0050.00915.30
7.0.170.0020.01115.51
7.0.160.0080.00515.28
7.0.150.0060.00515.40
7.0.140.0070.00415.50
7.0.130.0070.00615.27
7.0.120.0030.00915.25
7.0.110.0090.00015.16
7.0.100.0080.00215.24
7.0.90.0050.00515.37
7.0.80.0040.00715.23
7.0.70.0060.00415.39
7.0.60.0060.00615.37
7.0.50.0050.00515.53
7.0.40.0030.01113.43
7.0.30.0030.00613.43
7.0.20.0030.00913.47
7.0.10.0010.01313.52
7.0.00.0070.00713.43
5.6.400.0000.00914.35
5.6.390.0080.00514.34
5.6.380.0110.00414.41
5.6.370.0060.00814.13
5.6.360.0030.01014.46
5.6.350.0040.01014.21
5.6.340.0070.00514.19
5.6.330.0080.00614.17
5.6.320.0080.00714.39
5.6.310.0050.00714.54
5.6.300.0120.00114.34
5.6.290.0020.01114.05
5.6.280.0030.00814.36
5.6.270.0020.01014.32
5.6.260.0060.00514.28
5.6.250.0050.00614.24
5.6.240.0080.00514.25
5.6.230.0050.01014.38
5.6.220.0050.00714.41
5.6.210.0080.00414.31
5.6.200.0090.00414.26
5.6.190.0120.00114.24
5.6.180.0020.00914.30
5.6.170.0140.00014.19
5.6.160.0070.00714.22
5.6.150.0060.01014.35
5.6.140.0040.00614.30
5.6.130.0060.00914.49
5.6.120.0050.00814.27
5.6.110.0030.01014.37
5.6.100.0000.01314.21
5.6.90.0050.01014.17
5.6.80.0030.01214.25
5.6.70.0070.00514.23
5.6.60.0070.01014.24
5.6.50.0080.00613.96
5.6.40.0050.00614.06
5.6.30.0050.00814.07
5.6.20.0020.01114.21
5.6.10.0020.00814.36
5.6.00.0030.00814.16

preferences:
28.58 ms | 403 KiB | 5 Q