3v4l.org

run code in 300+ PHP versions simultaneously
<?php $functions = ['a', 'b']; $reverse = TRUE; $functions = $reverse ? $functions : array_reverse( $functions ); $functions[0](); $functions[1]();

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.0060.00918.52
8.3.50.0110.00821.84
8.3.40.0110.00718.85
8.3.30.0140.00018.63
8.3.20.0000.00820.21
8.3.10.0030.00520.65
8.3.00.0070.00021.66
8.2.180.0030.01016.50
8.2.170.0070.00722.96
8.2.160.0030.01322.08
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00021.03
8.2.120.0000.00926.35
8.2.110.0060.00319.33
8.2.100.0070.00417.93
8.2.90.0000.00719.22
8.2.80.0000.00817.97
8.2.70.0100.00017.63
8.2.60.0080.00417.93
8.2.50.0090.00318.09
8.2.40.0050.00322.27
8.2.30.0040.00419.28
8.2.20.0000.00817.78
8.2.10.0000.00818.16
8.2.00.0040.00417.91
8.1.280.0040.01125.92
8.1.270.0050.00822.09
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0060.00322.19
8.1.230.0040.00817.83
8.1.220.0040.00417.77
8.1.210.0030.00518.77
8.1.200.0070.00317.23
8.1.190.0040.00417.25
8.1.180.0000.00718.10
8.1.170.0060.00318.51
8.1.160.0040.00420.70
8.1.150.0070.00018.80
8.1.140.0040.00419.41
8.1.130.0030.00317.64
8.1.120.0040.00417.39
8.1.110.0030.00617.43
8.1.100.0040.00417.43
8.1.90.0000.00717.44
8.1.80.0000.01017.37
8.1.70.0040.00417.43
8.1.60.0080.00017.41
8.1.50.0040.00417.41
8.1.40.0050.00317.52
8.1.30.0090.00017.52
8.1.20.0000.00817.51
8.1.10.0060.00517.48
8.1.00.0040.00417.50
8.0.300.0030.00618.77
8.0.290.0040.00416.58
8.0.280.0000.00718.29
8.0.270.0070.00017.08
8.0.260.0060.00017.14
8.0.250.0030.00317.01
8.0.240.0050.00316.86
8.0.230.0030.00316.98
8.0.220.0040.00416.84
8.0.210.0000.00716.87
8.0.200.0030.00316.95
8.0.190.0070.00016.93
8.0.180.0040.00416.92
8.0.170.0000.00916.91
8.0.160.0050.00316.92
8.0.150.0040.00416.66
8.0.140.0000.00816.81
8.0.130.0000.00513.29
8.0.120.0030.00516.80
8.0.110.0040.00416.77
8.0.100.0070.00016.91
8.0.90.0040.00416.91
8.0.80.0030.01116.84
8.0.70.0000.00816.69
8.0.60.0040.00416.71
8.0.50.0000.00816.75
8.0.30.0130.00317.17
8.0.20.0120.00717.40
8.0.10.0050.00316.98
8.0.00.0100.01016.57
7.4.330.0000.00516.85
7.4.320.0040.00416.44
7.4.300.0030.00316.56
7.4.290.0070.00016.50
7.4.280.0070.00016.50
7.4.270.0030.00716.35
7.4.260.0000.00716.47
7.4.250.0040.00416.37
7.4.240.0040.00416.58
7.4.230.0070.00016.54
7.4.220.0120.00816.53
7.4.210.0020.01216.61
7.4.200.0000.00816.65
7.4.160.0110.00416.42
7.4.150.0180.00017.40
7.4.140.0110.01017.86
7.4.130.0070.01316.52
7.4.120.0100.00716.47
7.4.110.0100.00716.43
7.4.100.0110.00716.53
7.4.90.0100.00716.54
7.4.80.0150.00419.39
7.4.70.0000.01616.50
7.4.60.0070.01316.37
7.4.50.0060.00616.35
7.4.40.0130.00316.34
7.4.30.0100.00916.53
7.4.10.0060.01214.89
7.4.00.0060.01014.92
7.3.330.0030.00213.02
7.3.320.0030.00313.21
7.3.310.0040.00416.25
7.3.300.0000.00716.27
7.3.290.0000.00716.30
7.3.280.0080.01016.29
7.3.270.0090.00917.40
7.3.260.0070.01416.32
7.3.250.0120.00816.39
7.3.240.0110.00516.24
7.3.230.0130.00616.39
7.3.210.0130.00316.29
7.3.200.0030.01616.20
7.3.190.0120.00316.32
7.3.180.0140.00316.29
7.3.170.0170.00616.29
7.3.160.0130.00316.39
7.3.130.0060.01314.82
7.3.120.0100.00614.72
7.3.110.0080.01014.80
7.3.100.0040.01014.84
7.3.90.0060.00814.74
7.3.80.0030.00814.85
7.3.70.0050.00714.67
7.3.60.0060.00814.77
7.3.50.0070.00414.63
7.3.40.0060.00814.69
7.3.30.0040.00914.56
7.3.20.0090.00316.50
7.3.10.0090.00416.62
7.3.00.0070.00716.54
7.2.330.0140.00316.70
7.2.320.0140.00416.57
7.2.310.0040.01416.65
7.2.300.0180.02416.64
7.2.290.0060.00916.50
7.2.260.0050.01114.91
7.2.250.0080.01114.83
7.2.240.0060.01014.98
7.2.230.0060.00914.92
7.2.220.0030.01214.88
7.2.210.0060.00815.07
7.2.200.0110.00314.93
7.2.190.0040.01214.95
7.2.180.0050.00914.82
7.2.170.0030.01314.92
7.2.160.0080.00514.91
7.2.150.0050.00516.72
7.2.140.0070.00816.80
7.2.130.0030.01216.72
7.2.120.0050.01016.66
7.2.110.0070.00616.76
7.2.100.0090.00716.82
7.2.90.0060.00916.68
7.2.80.0100.00616.82
7.2.70.0060.00816.80
7.2.60.0060.01016.75
7.2.50.0070.00716.87
7.2.40.0060.00616.78
7.2.30.0080.00616.77
7.2.20.0030.01216.70
7.2.10.0050.00916.76
7.2.00.0070.00817.22
7.1.330.0050.00815.59
7.1.320.0050.01115.63
7.1.310.0030.00915.84
7.1.300.0080.00715.78
7.1.290.0040.00815.79
7.1.280.0070.00815.62
7.1.270.0070.00615.73
7.1.260.0080.00715.72
7.1.250.0070.00615.64
7.1.240.0070.00715.67
7.1.230.0070.00815.61
7.1.220.0080.00715.55
7.1.210.0090.00715.56
7.1.200.0050.00815.63
7.1.190.0080.00515.78
7.1.180.0080.00415.65
7.1.170.0070.00715.66
7.1.160.0060.00815.64
7.1.150.0060.00815.71
7.1.140.0090.00615.77
7.1.130.0080.00415.65
7.1.120.0080.00615.70
7.1.110.0090.00715.76
7.1.100.0060.00816.20
7.1.90.0070.00415.76
7.1.80.0050.00915.71
7.1.70.0060.00915.94
7.1.60.0070.00816.49
7.1.50.0080.00615.93
7.1.40.0050.00815.60
7.1.30.0070.00615.74
7.1.20.0020.01015.67
7.1.10.0040.00915.71
7.1.00.0070.02016.92
7.0.330.0090.00215.32
7.0.320.0070.00515.19
7.0.310.0060.00715.36
7.0.300.0060.00615.29
7.0.290.0050.00715.29
7.0.280.0080.00415.31
7.0.270.0080.00615.34
7.0.260.0060.00715.29
7.0.250.0080.00415.32
7.0.240.0060.00615.27
7.0.230.0050.00915.30
7.0.220.0050.00715.39
7.0.210.0060.00715.29
7.0.200.0070.00615.24
7.0.190.0120.00415.38
7.0.180.0070.00815.30
7.0.170.0030.01015.31
7.0.160.0070.00815.29
7.0.150.0050.00815.33
7.0.140.0060.00915.20
7.0.130.0100.00615.40
7.0.120.0090.00515.37
7.0.110.0070.00815.34
7.0.100.0060.00915.33
7.0.90.0050.01015.24
7.0.80.0060.00615.29
7.0.70.0070.00515.24
7.0.60.0060.02216.57
7.0.50.0080.02115.85
7.0.40.0040.01514.67
7.0.30.0140.02014.78
7.0.20.0090.02114.67
7.0.10.0060.02014.73
7.0.00.0050.02314.69
5.6.400.0020.00814.30
5.6.390.0050.00714.30
5.6.380.0100.00414.28
5.6.370.0090.00614.28
5.6.360.0090.00214.14
5.6.350.0040.00814.13
5.6.340.0070.00614.30
5.6.330.0050.00814.30
5.6.320.0040.01014.36
5.6.310.0050.00714.25
5.6.300.0080.00814.45
5.6.290.0050.00714.39
5.6.280.0060.01215.75
5.6.270.0060.00814.21
5.6.260.0070.00814.33
5.6.250.0050.00614.39
5.6.240.0050.00614.24
5.6.230.0050.00814.23
5.6.220.0080.00514.34
5.6.210.0040.02315.45
5.6.200.0070.01115.00
5.6.190.0090.01515.48
5.6.180.0080.01615.51
5.6.170.0090.01315.57
5.6.160.0090.01315.47
5.6.150.0060.02015.07
5.6.140.0090.01815.14
5.6.130.0070.01815.05
5.6.120.0060.01615.71
5.6.110.0060.02215.69
5.6.100.0070.02115.57
5.6.90.0070.01915.64
5.6.80.0090.01515.43
5.6.70.0070.00814.18
5.6.60.0040.00914.22
5.6.50.0080.00414.15
5.6.40.0090.00514.24
5.6.30.0060.01014.17
5.6.20.0080.00714.31
5.6.10.0050.00714.20
5.6.00.0070.00514.17
5.5.380.0050.00713.53
5.5.370.0080.00613.34
5.5.360.0040.00613.42
5.5.350.0070.01514.58
5.5.340.0050.02114.26
5.5.330.0050.02014.68
5.5.320.0110.02014.78
5.5.310.0090.01514.84
5.5.300.0070.01814.31
5.5.290.0070.01914.40
5.5.280.0090.01514.83
5.5.270.0060.01414.78
5.5.260.0070.02014.91
5.5.250.0060.02014.73
5.5.240.0030.02014.70
5.5.230.0030.00913.42
5.5.220.0010.01013.27
5.5.210.0060.00413.31
5.5.200.0050.01113.34
5.5.190.0080.00613.32
5.5.180.0030.01113.34
5.5.170.0040.01113.27
5.5.160.0040.01013.42
5.5.150.0060.00813.43
5.5.140.0040.00713.37
5.5.130.0050.00813.39
5.5.120.0040.01013.28
5.5.110.0040.00613.33
5.5.100.0050.00513.37
5.5.90.0040.00713.45
5.5.80.0050.00813.25
5.5.70.0050.00913.35
5.5.60.0070.00513.18
5.5.50.0040.00713.32
5.5.40.0090.00213.26
5.5.30.0060.00813.30
5.5.20.0030.00913.31
5.5.10.0070.00513.13
5.5.00.0060.00613.31

preferences:
44.79 ms | 401 KiB | 5 Q