3v4l.org

run code in 300+ PHP versions simultaneously
<?php f1(); f2(); function f1(){} if(true) { function f2(){} }

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.0040.00718.00
8.4.10.0000.00817.93
8.3.150.0000.00816.67
8.3.140.0050.00316.74
8.3.130.0030.00618.60
8.3.120.0100.00618.88
8.3.110.0060.00316.75
8.3.100.0030.00624.06
8.3.90.0080.00026.77
8.3.80.0090.00016.75
8.3.70.0070.00716.63
8.3.60.0070.01416.88
8.3.50.0110.00622.05
8.3.40.0110.00318.80
8.3.30.0080.00519.27
8.3.20.0080.00020.29
8.3.10.0040.00423.65
8.3.00.0040.00419.56
8.2.260.0070.01118.23
8.2.250.0080.00018.47
8.2.240.0040.00418.68
8.2.230.0040.00420.94
8.2.220.0080.00037.54
8.2.210.0040.00426.77
8.2.200.0060.00316.88
8.2.190.0080.00816.58
8.2.180.0140.00716.75
8.2.170.0100.00322.96
8.2.160.0150.00020.52
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0000.00820.66
8.2.110.0030.00620.34
8.2.100.0080.00417.72
8.2.90.0040.00419.09
8.2.80.0000.00817.97
8.2.70.0090.00017.50
8.2.60.0000.00817.91
8.2.50.0030.00618.07
8.2.40.0040.00419.82
8.2.30.0000.00818.11
8.2.20.0000.00817.69
8.2.10.0040.00417.89
8.2.00.0000.00817.67
8.1.310.0090.00918.68
8.1.300.0110.00718.39
8.1.290.0060.00318.88
8.1.280.0040.01125.92
8.1.270.0030.00523.99
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0100.00022.01
8.1.230.0080.00422.16
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0000.01017.36
8.1.190.0040.00417.13
8.1.180.0040.00418.10
8.1.170.0050.00318.36
8.1.160.0070.00021.82
8.1.150.0070.00018.37
8.1.140.0040.00417.33
8.1.130.0050.00317.77
8.1.120.0030.00317.23
8.1.110.0030.00717.29
8.1.100.0080.00017.39
8.1.90.0040.00417.38
8.1.80.0040.00417.33
8.1.70.0070.00017.23
8.1.60.0040.00817.50
8.1.50.0030.00517.46
8.1.40.0000.00717.35
8.1.30.0000.00817.61
8.1.20.0050.00317.55
8.1.10.0080.00017.47
8.1.00.0040.00417.52
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0030.00318.25
8.0.270.0000.00717.10
8.0.260.0030.00317.18
8.0.250.0040.00416.85
8.0.240.0040.00416.95
8.0.230.0030.00316.84
8.0.220.0000.00616.89
8.0.210.0000.00716.89
8.0.200.0060.00016.84
8.0.190.0070.00016.79
8.0.180.0000.00816.92
8.0.170.0060.00316.81
8.0.160.0070.00016.84
8.0.150.0040.00416.82
8.0.140.0030.00616.83
8.0.130.0050.00013.31
8.0.120.0060.00316.84
8.0.110.0070.00016.79
8.0.100.0030.00516.95
8.0.90.0030.00516.96
8.0.80.0130.00316.85
8.0.70.0040.00416.77
8.0.60.0040.00416.78
8.0.50.0000.00716.92
8.0.30.0130.00616.94
8.0.20.0110.01117.40
8.0.10.0050.00316.92
8.0.00.0090.01016.85
7.4.330.0030.00315.08
7.4.320.0030.00616.31
7.4.300.0030.00316.35
7.4.290.0030.00316.46
7.4.280.0000.00816.44
7.4.270.0000.00716.42
7.4.260.0080.00016.54
7.4.250.0070.00016.54
7.4.240.0060.00116.47
7.4.230.0030.00316.63
7.4.220.0140.00416.63
7.4.210.0070.01016.55
7.4.200.0070.00016.32
7.4.160.0030.01316.48
7.4.150.0160.00717.40
7.4.140.0080.00917.86
7.4.130.0100.00816.37
7.4.120.0130.00516.41
7.4.110.0100.00716.52
7.4.100.0140.00716.33
7.4.90.0060.01016.33
7.4.80.0150.00619.39
7.4.70.0030.01316.53
7.4.60.0100.00616.35
7.4.50.0000.00816.36
7.4.40.0080.00816.52
7.4.30.0050.01016.36
7.4.10.0100.01015.14
7.4.00.0080.01014.83
7.3.330.0000.00513.30
7.3.320.0050.00013.32
7.3.310.0040.00216.15
7.3.300.0060.00016.26
7.3.290.0090.00616.28
7.3.280.0130.00516.30
7.3.270.0070.01017.40
7.3.260.0120.01316.50
7.3.250.0070.01216.40
7.3.240.0040.01416.26
7.3.230.0130.00916.39
7.3.210.0100.00816.44
7.3.200.0120.00919.39
7.3.190.0060.01116.49
7.3.180.0120.00416.34
7.3.170.0060.00916.28
7.3.160.0030.01316.27
7.3.130.0040.01414.81
7.3.120.0120.00514.93
7.3.110.0130.00314.62
7.3.100.0030.01014.71
7.3.90.0100.00314.78
7.3.80.0030.01014.95
7.3.70.0070.00714.75
7.3.60.0000.01314.88
7.3.50.0040.00814.79
7.3.40.0000.01014.74
7.3.30.0040.00414.88
7.3.20.0040.00816.62
7.3.10.0100.00316.75
7.3.00.0000.01616.56
7.2.330.0130.00316.17
7.2.320.0090.00916.59
7.2.310.0060.01216.41
7.2.300.0040.01216.37
7.2.290.0030.01316.66
7.2.260.0110.00814.59
7.2.250.0110.00714.84
7.2.240.0090.00614.95
7.2.230.0070.01015.05
7.2.220.0000.01514.89
7.2.210.0110.00414.86
7.2.200.0000.00915.05
7.2.190.0040.01115.05
7.2.180.0030.00615.06
7.2.170.0030.00714.81
7.2.160.0080.00414.91
7.2.150.0030.01216.83
7.2.140.0050.00516.71
7.2.130.0080.00816.74
7.2.120.0030.00916.61
7.2.110.0080.00616.92
7.2.100.0070.00716.89
7.2.90.0110.00416.93
7.2.80.0070.00716.69
7.2.70.0040.01416.62
7.2.60.0060.00816.82
7.2.50.0060.00916.87
7.2.40.0040.01416.75
7.2.30.0110.00316.83
7.2.20.0110.00316.81
7.2.10.0080.00416.43
7.2.00.0050.01018.07
7.1.330.0030.01015.57
7.1.320.0030.00715.79
7.1.310.0090.00315.49
7.1.300.0000.00915.58
7.1.290.0060.00615.38
7.1.280.0030.00715.69
7.1.270.0000.01515.30
7.1.260.0090.00315.67
7.1.250.0000.01115.67
7.1.240.0030.01015.79
7.1.230.0090.00015.63
7.1.220.0030.00515.57
7.1.210.0030.00715.37
7.1.200.0060.00415.48
7.1.190.0030.01015.33
7.1.180.0040.01415.68
7.1.170.0050.00515.61
7.1.160.0040.00415.75
7.1.150.0070.00715.57
7.1.140.0070.01315.49
7.1.130.0060.00315.68
7.1.120.0030.00615.53
7.1.110.0040.00815.60
7.1.100.0090.00315.70
7.1.90.0080.00315.45
7.1.80.0040.00715.75
7.1.70.0010.00616.23
7.1.60.0050.01417.74
7.1.50.0090.00716.29
7.1.40.0070.01015.32
7.1.30.0140.00315.38
7.1.20.0120.00015.57
7.1.10.0040.00715.64
7.1.00.0030.04419.06
7.0.330.0000.01215.32
7.0.320.0090.00915.42
7.0.310.0070.00314.98
7.0.300.0030.01315.14
7.0.290.0070.00715.23
7.0.280.0060.00615.45
7.0.270.0000.01315.34
7.0.260.0000.01115.30
7.0.250.0000.01515.13
7.0.240.0060.00715.34
7.0.230.0030.00615.43
7.0.220.0060.00815.45
7.0.210.0090.00915.17
7.0.200.0070.00316.00
7.0.190.0070.01115.30
7.0.180.0040.01115.44
7.0.170.0110.00715.30
7.0.160.0070.00715.03
7.0.150.0050.00515.27
7.0.140.0010.04218.74
7.0.130.0100.00315.43
7.0.120.0000.01315.31
7.0.110.0000.00915.40
7.0.100.0180.04417.57
7.0.90.0070.04417.63
7.0.80.0230.04017.65
7.0.70.0250.04017.64
7.0.60.0210.03017.65
7.0.50.0140.03417.89
7.0.40.0070.02716.79
7.0.30.0070.04116.75
7.0.20.0060.02816.64
7.0.10.0040.02816.52
7.0.00.0040.04816.79
5.6.400.0060.00314.02
5.6.390.0080.00414.09
5.6.380.0090.00313.80
5.6.370.0090.00014.20
5.6.360.0000.01914.08
5.6.350.0070.00714.27
5.6.340.0070.01013.79
5.6.330.0060.00614.21
5.6.320.0120.00414.02
5.6.310.0070.01014.14
5.6.300.0030.00613.95
5.6.290.0070.00714.26
5.6.280.0080.03817.58
5.6.270.0030.01214.22
5.6.260.0090.00613.85
5.6.250.0070.04517.44
5.6.240.0030.03117.54
5.6.230.0080.03517.49
5.6.220.0110.03817.26
5.6.210.0080.04017.23
5.6.200.0100.04517.62
5.6.190.0050.04117.54
5.6.180.0100.04217.55
5.6.170.0060.03117.49
5.6.160.0080.03117.62
5.6.150.0080.04317.74
5.6.140.0050.04717.66
5.6.130.0100.04317.67
5.6.120.0050.04417.45
5.6.110.0130.03817.65
5.6.100.0030.04717.54
5.6.90.0080.04117.50
5.6.80.0040.02517.17
5.6.70.0070.02317.31
5.6.60.0150.02517.40
5.6.50.0050.02517.20
5.6.40.0020.02717.16
5.6.30.0060.02317.24
5.6.20.0040.02617.25
5.6.10.0000.02917.20
5.6.00.0050.02417.30
5.5.380.0050.03517.41
5.5.370.0080.03517.14
5.5.360.0020.03217.13
5.5.350.0070.04517.32
5.5.340.0050.04317.49
5.5.330.0070.02817.30
5.5.320.0100.03717.38
5.5.310.0020.04617.39
5.5.300.0030.04717.45
5.5.290.0100.03717.53
5.5.280.0050.04317.49
5.5.270.0070.03017.29
5.5.260.0110.03617.28
5.5.250.0100.02717.30
5.5.240.0060.02017.06
5.5.230.0030.03317.22
5.5.220.0130.01817.27
5.5.210.0050.02517.21
5.5.200.0020.02716.97
5.5.190.0050.02217.06
5.5.180.0040.02617.04
5.5.170.0070.00714.00
5.5.160.0080.01817.15
5.5.150.0100.01817.18
5.5.140.0070.03817.01
5.5.130.0050.03717.10
5.5.120.0030.03817.02
5.5.110.0030.03117.04
5.5.100.0050.03216.90
5.5.90.0070.02017.15
5.5.80.0030.03217.08
5.5.70.0000.02616.97
5.5.60.0050.02117.09
5.5.50.0020.02417.07
5.5.40.0060.03016.81
5.5.30.0050.02416.77
5.5.20.0070.02517.04
5.5.10.0050.02316.92
5.5.00.0060.02616.87
5.4.450.0080.04316.00
5.4.440.0120.03316.00
5.4.430.0110.03115.93
5.4.420.0070.03715.85
5.4.410.0030.03515.80
5.4.400.0030.02215.87
5.4.390.0040.02315.87
5.4.380.0080.02015.87
5.4.370.0050.03615.77
5.4.360.0050.02015.87
5.4.350.0020.02315.78
5.4.340.0050.02015.83
5.4.330.0030.00312.50
5.4.320.0000.02315.69
5.4.310.0000.02315.77
5.4.300.0030.02115.77
5.4.290.0080.03115.82
5.4.280.0050.04015.72
5.4.270.0080.03015.72
5.4.260.0000.03215.70
5.4.250.0020.02315.81
5.4.240.0000.02615.81
5.4.230.0050.02215.81
5.4.220.0050.01715.81
5.4.210.0050.02015.77
5.4.200.0030.02215.87
5.4.190.0030.02715.79
5.4.180.0030.02315.81
5.4.170.0000.02515.83
5.4.160.0070.02015.77
5.4.150.0050.02515.82
5.4.140.0080.02014.38
5.4.130.0040.01814.41
5.4.120.0000.02214.46
5.4.110.0020.02414.44
5.4.100.0030.02114.44
5.4.90.0020.02914.49
5.4.80.0000.02414.49
5.4.70.0020.02414.43
5.4.60.0030.02214.46
5.4.50.0050.02014.47
5.4.40.0080.02314.46
5.4.30.0070.01814.42
5.4.20.0020.02214.46
5.4.10.0000.02514.42
5.4.00.0050.01814.22
5.3.290.0030.02013.55
5.3.280.0100.01613.58
5.3.270.0030.02213.54
5.3.260.0030.02313.58
5.3.250.0050.02213.62
5.3.240.0030.02413.60
5.3.230.0080.01613.60
5.3.220.0030.02213.49
5.3.210.0030.02113.52
5.3.200.0000.02413.57
5.3.190.0000.03413.60
5.3.180.0050.02713.53
5.3.170.0030.02213.54
5.3.160.0020.02113.56
5.3.150.0060.02913.52
5.3.140.0000.03713.54
5.3.130.0060.02013.49
5.3.120.0070.02013.50
5.3.110.0040.02113.49
5.3.100.0050.03313.24
5.3.90.0040.02013.29
5.3.80.0050.02413.22
5.3.70.0030.02313.22
5.3.60.0030.02213.30
5.3.50.0030.02213.19
5.3.40.0060.03713.22
5.3.30.0050.02813.17
5.3.20.0030.02213.09
5.3.10.0070.03513.04
5.3.00.0090.02513.10
5.2.170.0000.04711.25
5.2.160.0030.06011.27
5.2.150.0100.02711.00
5.2.140.0000.06311.17
5.2.130.0030.05011.00
5.2.120.0030.06011.10
5.2.110.0070.04711.00
5.2.100.0030.06711.19
5.2.90.0030.06011.16
5.2.80.0070.06011.00
5.2.70.0100.06011.13
5.2.60.0070.06311.06
5.2.50.0070.05010.92
5.2.40.0100.05311.10
5.2.30.0130.04310.96
5.2.20.0000.05311.11
5.2.10.0100.05710.92
5.2.00.0000.06310.72
5.1.60.0070.0409.87
5.1.50.0000.05010.11
5.1.40.0100.04710.04
5.1.30.0000.06010.38
5.1.20.0000.05310.21
5.1.10.0070.04710.16
5.1.00.0070.0539.95
5.0.50.0000.0439.18
5.0.40.0070.0439.18
5.0.30.0100.0509.18
5.0.20.0000.0439.18
5.0.10.0000.0409.18
5.0.00.0030.0679.18
4.4.90.0070.0209.18
4.4.80.0000.0379.18
4.4.70.0000.0379.18
4.4.60.0000.0279.18
4.4.50.0030.0339.18
4.4.40.0000.0539.18
4.4.30.0000.0409.18
4.4.20.0000.0379.18
4.4.10.0030.0379.18
4.4.00.0000.0409.18
4.3.110.0070.0239.18
4.3.100.0030.0179.18
4.3.90.0030.0279.18
4.3.80.0000.0339.18
4.3.70.0000.0309.18
4.3.60.0000.0309.18
4.3.50.0030.0339.18
4.3.40.0070.0479.18
4.3.30.0000.0239.18
4.3.20.0000.0309.18
4.3.10.0070.0279.18
4.3.00.0070.0209.18

preferences:
21.46 ms | 403 KiB | 5 Q