3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Ensure that PHP's magic constant __DIR__ is defined - no matter of the PHP version. // If magic __DIR__ constant is not defined, define it. (@__DIR__ == '__DIR__') && define('__DIR__', dirname(__FILE__)); // All PHP versions (>= 4.3.1) can use the magic __DIR__ constant now.. // Demo (outputs and VLD opcodes) here: http://3v4l.org/bm6e1 ?>

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.0100.01018.30
8.3.50.0100.00522.10
8.3.40.0140.00018.54
8.3.30.0110.00318.84
8.3.20.0070.00020.07
8.3.10.0030.00621.89
8.3.00.0080.00022.16
8.2.180.0090.00616.63
8.2.170.0110.00422.96
8.2.160.0070.00720.81
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0050.00226.16
8.2.120.0050.00317.50
8.2.110.0040.01222.08
8.2.100.0080.00317.46
8.2.90.0030.00618.98
8.2.80.0040.00417.97
8.2.70.0030.00617.38
8.2.60.0040.00417.80
8.2.50.0060.00318.07
8.2.40.0040.00418.03
8.2.30.0040.00417.87
8.2.20.0040.00417.52
8.2.10.0070.00017.59
8.2.00.0030.00417.53
8.1.280.0040.01125.92
8.1.270.0040.00422.19
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00323.86
8.1.230.0050.00519.10
8.1.220.0000.00817.74
8.1.210.0030.00718.77
8.1.200.0060.00617.23
8.1.190.0000.00817.38
8.1.180.0060.00318.10
8.1.170.0080.00018.78
8.1.160.0000.00822.00
8.1.150.0000.00718.56
8.1.140.0000.00717.42
8.1.130.0030.00617.65
8.1.120.0000.00717.30
8.1.110.0040.00417.26
8.1.100.0070.00017.34
8.1.90.0070.00017.34
8.1.80.0030.00317.40
8.1.70.0000.00817.36
8.1.60.0060.00317.52
8.1.50.0000.00817.42
8.1.40.0040.00417.47
8.1.30.0000.00817.49
8.1.20.0040.00417.52
8.1.10.0000.00717.47
8.1.00.0040.00417.26
8.0.300.0060.00318.77
8.0.290.0080.00016.93
8.0.280.0030.00318.36
8.0.270.0050.00317.18
8.0.260.0000.00616.75
8.0.250.0040.00416.84
8.0.240.0040.00416.88
8.0.230.0030.00316.91
8.0.220.0030.00316.84
8.0.210.0030.00316.85
8.0.200.0030.00316.84
8.0.190.0000.00816.77
8.0.180.0080.00016.88
8.0.170.0000.00816.89
8.0.160.0040.00416.70
8.0.150.0050.00216.69
8.0.140.0040.00416.76
8.0.130.0000.00613.29
8.0.120.0050.00216.73
8.0.110.0040.00416.79
8.0.100.0040.00416.80
8.0.90.0040.00416.81
8.0.80.0110.00316.76
8.0.70.0040.00416.72
8.0.60.0050.00316.63
8.0.50.0080.00016.68
8.0.30.0120.00816.99
8.0.20.0130.00817.40
8.0.10.0000.00716.94
8.0.00.0080.00916.68
7.4.330.0060.00015.00
7.4.320.0040.00416.44
7.4.300.0000.00716.52
7.4.290.0040.00416.43
7.4.280.0070.00016.41
7.4.270.0060.00016.39
7.4.260.0030.00516.36
7.4.250.0070.00016.28
7.4.240.0040.00416.51
7.4.230.0030.00316.59
7.4.220.0090.01616.56
7.4.210.0090.00516.40
7.4.200.0050.00216.33
7.4.190.0000.00716.54
7.4.160.0110.00516.50
7.4.150.0130.00517.40
7.4.140.0120.00617.86
7.4.130.0080.01016.35
7.4.120.0150.00616.50
7.4.110.0070.01016.52
7.4.100.0080.00816.32
7.4.90.0120.01216.40
7.4.80.0100.00719.39
7.4.70.0030.01216.45
7.4.60.0160.00616.29
7.4.50.0030.00616.25
7.4.40.0030.01022.77
7.4.30.0000.01716.49
7.4.10.0000.01615.98
7.4.00.0100.00715.61
7.3.330.0000.00513.03
7.3.320.0000.00512.99
7.3.310.0000.00616.16
7.3.300.0000.00716.09
7.3.290.0110.00516.22
7.3.280.0080.01016.13
7.3.270.0100.00717.40
7.3.260.0100.00616.35
7.3.250.0070.01016.35
7.3.240.0080.00816.46
7.3.230.0080.00816.42
7.3.210.0120.00816.39
7.3.200.0130.00319.39
7.3.190.0040.01416.23
7.3.180.0000.01516.41
7.3.170.0100.00716.27
7.3.160.0110.00816.30
7.3.130.0080.00716.30
7.3.120.0050.01115.32
7.3.110.0080.00616.31
7.3.100.0090.00616.40
7.3.90.0030.00716.19
7.3.80.0030.01016.28
7.3.70.0070.00716.17
7.3.60.0000.01516.27
7.3.50.0110.00416.25
7.3.40.0090.00616.21
7.3.30.0090.00916.27
7.3.20.0080.00818.09
7.3.10.0040.00818.01
7.3.00.0040.01218.16
7.2.330.0130.00316.23
7.2.320.0160.00616.28
7.2.310.0140.00316.43
7.2.300.0060.01016.54
7.2.290.0040.01216.37
7.2.260.0090.00916.39
7.2.250.0000.02016.47
7.2.240.0030.01316.54
7.2.230.0060.00916.33
7.2.220.0030.00716.49
7.2.210.0070.00716.50
7.2.200.0000.01416.22
7.2.190.0090.00616.23
7.2.180.0100.00716.38
7.2.170.0040.01116.39
7.2.160.0000.01116.28
7.2.150.0030.01018.14
7.2.140.0090.00618.27
7.2.130.0060.00918.13
7.2.120.0090.00618.14
7.2.110.0000.01618.14
7.2.100.0100.00318.20
7.2.90.0060.00618.24
7.2.80.0140.00418.35
7.2.70.0060.00618.21
7.2.60.0070.00517.51
7.2.50.0030.00718.12
7.2.40.0030.01018.36
7.2.30.0060.00618.34
7.2.20.0000.01018.20
7.2.10.0030.00718.32
7.2.00.0070.00918.78
7.1.330.0000.01617.27
7.1.320.0000.01317.22
7.1.310.0040.01117.20
7.1.300.0090.00617.26
7.1.290.0100.00317.25
7.1.280.0100.00317.05
7.1.270.0060.00717.20
7.1.260.0000.01317.19
7.1.250.0040.01217.29
7.1.240.0070.00717.25
7.1.230.0030.00617.20
7.1.220.0040.01117.20
7.1.210.0030.01217.14
7.1.200.0080.00616.41
7.1.190.0030.00916.93
7.1.180.0070.00717.21
7.1.170.0000.01417.03
7.1.160.0090.00617.07
7.1.150.0030.00917.19
7.1.140.0040.01217.03
7.1.130.0050.00817.33
7.1.120.0040.00817.13
7.1.110.0060.00617.07
7.1.100.0080.00617.59
7.1.90.0030.01017.08
7.1.80.0080.00417.09
7.1.70.0020.00817.02
7.1.60.0080.00918.51
7.1.50.0050.00916.87
7.1.40.0120.00317.39
7.1.30.0000.01017.20
7.1.20.0030.01317.26
7.1.10.0090.00617.07
7.1.00.0050.04119.70
7.0.330.0070.00716.92
7.0.320.0040.00716.84
7.0.310.0000.00917.05
7.0.300.0090.00016.73
7.0.290.0070.00716.74
7.0.280.0100.00316.86
7.0.270.0030.01017.09
7.0.260.0000.01116.72
7.0.250.0060.00916.88
7.0.240.0030.01016.96
7.0.230.0000.01116.89
7.0.220.0000.01017.06
7.0.210.0040.00816.85
7.0.200.0090.00616.69
7.0.190.0000.01417.04
7.0.180.0060.00316.77
7.0.170.0070.01016.97
7.0.160.0000.01416.78
7.0.150.0030.01016.85
7.0.140.0030.04219.42
7.0.130.0040.00716.70
7.0.120.0030.01016.80
7.0.110.0120.00616.68
7.0.100.0100.02018.47
7.0.90.0120.04118.29
7.0.80.0050.02518.27
7.0.70.0050.02218.46
7.0.60.0070.02218.34
7.0.50.0030.02518.44
7.0.40.0040.02417.47
7.0.30.0100.02017.63
7.0.20.0070.03317.41
7.0.10.0060.02317.50
7.0.00.0050.02217.40
5.6.400.0000.01416.12
5.6.390.0110.00415.97
5.6.380.0060.00915.81
5.6.370.0080.00415.53
5.6.360.0070.00715.69
5.6.350.0040.00815.53
5.6.340.0000.01015.91
5.6.330.0060.00915.45
5.6.320.0110.00415.96
5.6.310.0110.00015.57
5.6.300.0150.00015.83
5.6.290.0100.00615.59
5.6.280.0050.03818.31
5.6.270.0070.01015.80
5.6.260.0030.01415.44
5.6.250.0030.02918.20
5.6.240.0050.04318.08
5.6.230.0060.03018.17
5.6.220.0080.02318.23
5.6.210.0070.03918.19
5.6.200.0030.02518.37
5.6.190.0030.02318.42
5.6.180.0050.02518.34
5.6.170.0050.02118.34
5.6.160.0070.02218.44
5.6.150.0090.02918.38
5.6.140.0040.02718.33
5.6.130.0090.03718.33
5.6.120.0100.03218.46
5.6.110.0050.02718.32
5.6.100.0020.03618.34
5.6.90.0030.02718.50
5.6.80.0070.04417.98
5.6.70.0120.03718.00
5.6.60.0070.04218.04
5.6.50.0050.04318.03
5.6.40.0100.04517.98
5.6.30.0050.04217.98
5.6.20.0050.04217.90
5.6.10.0050.04518.07
5.6.00.0100.03617.98
5.5.380.0040.03718.11
5.5.370.0040.02118.07
5.5.360.0070.02517.91
5.5.350.0080.02318.11
5.5.340.0100.01718.38
5.5.330.0080.02318.16
5.5.320.0030.02518.28
5.5.310.0010.02518.07
5.5.300.0070.03418.34
5.5.290.0060.03518.34
5.5.280.0030.03218.24
5.5.270.0110.03818.20
5.5.260.0030.02818.30
5.5.250.0070.02818.15
5.5.240.0080.04017.80
5.5.230.0060.04618.00
5.5.220.0090.02818.03
5.5.210.0030.03517.88
5.5.200.0080.04417.84
5.5.190.0050.03917.88
5.5.180.0030.04817.79
5.5.170.0060.00615.68
5.5.160.0080.04217.98
5.5.150.0060.04817.80
5.5.140.0060.02717.79
5.5.130.0080.04017.91
5.5.120.0050.04517.93
5.5.110.0030.04217.86
5.5.100.0100.03717.82
5.5.90.0070.04217.78
5.5.80.0020.03017.86
5.5.70.0060.04117.82
5.5.60.0080.03017.86
5.5.50.0060.04317.74
5.5.40.0080.04117.71
5.5.30.0080.04117.89
5.5.20.0080.03817.77
5.5.10.0050.04517.69
5.5.00.0120.03617.60
5.4.450.0070.01815.64
5.4.440.0020.03015.82
5.4.430.0070.02915.82
5.4.420.0030.04115.72
5.4.410.0020.03415.95
5.4.400.0020.03015.64
5.4.390.0080.03615.62
5.4.380.0080.03815.65
5.4.370.0050.04315.71
5.4.360.0000.04715.65
5.4.350.0020.03015.68
5.4.340.0110.04015.54
5.4.330.0030.00912.32
5.4.320.0050.02815.74
5.4.310.0090.04215.69
5.4.300.0100.03215.70
5.4.290.0050.04515.79
5.4.280.0020.04615.65
5.4.270.0050.04215.65
5.4.260.0070.03815.53
5.4.250.0120.03715.61
5.4.240.0090.03715.59
5.4.230.0050.03515.62
5.4.220.0060.03815.79
5.4.210.0100.03515.81
5.4.200.0050.04215.69
5.4.190.0100.01715.61
5.4.180.0120.03315.71
5.4.170.0050.04115.71
5.4.160.0050.04415.49
5.4.150.0070.02815.81
5.4.140.0100.03514.28
5.4.130.0070.03714.36
5.4.120.0030.04314.28
5.4.110.0070.03714.25
5.4.100.0050.03314.24
5.4.90.0070.03714.31
5.4.80.0050.03714.31
5.4.70.0080.02014.34
5.4.60.0060.03314.34
5.4.50.0110.02914.24
5.4.40.0040.03814.38
5.4.30.0050.03714.24
5.4.20.0070.03314.28
5.4.10.0060.03914.34
5.4.00.0070.03313.99
5.3.290.0060.04013.78
5.3.280.0070.02313.68
5.3.270.0000.04713.77
5.3.260.0060.04213.70
5.3.250.0110.03513.59
5.3.240.0100.03613.66
5.3.230.0070.03713.62
5.3.220.0050.04013.57
5.3.210.0010.02613.56
5.3.200.0100.02113.57
5.3.190.0080.04013.63
5.3.180.0090.03613.57
5.3.170.0100.03013.59
5.3.160.0080.02513.65
5.3.150.0050.04613.63
5.3.140.0070.03513.63
5.3.130.0030.04313.78
5.3.120.0050.04213.66
5.3.110.0080.04113.67
5.3.100.0030.02513.40
5.3.90.0050.03513.36
5.3.80.0070.03513.37
5.3.70.0080.02813.25
5.3.60.0060.04013.37
5.3.50.0050.02213.31
5.3.40.0080.03713.16
5.3.30.0050.03913.36
5.3.20.0030.04013.24
5.3.10.0030.03813.04
5.3.00.0080.03313.05
5.2.170.0070.06311.18
5.2.160.0000.06311.01
5.2.150.0030.06010.96
5.2.140.0070.04311.10
5.2.130.0000.05710.95
5.2.120.0030.04011.09
5.2.110.0030.06311.14
5.2.100.0030.06311.09
5.2.90.0100.05710.96
5.2.80.0030.04711.01
5.2.70.0100.06010.95
5.2.60.0070.06010.88
5.2.50.0030.06011.00
5.2.40.0030.05010.91
5.2.30.0030.06010.82
5.2.20.0070.03010.81
5.2.10.0000.03710.98
5.2.00.0000.03710.63
5.1.60.0070.0509.98
5.1.50.0070.0509.98
5.1.40.0030.05310.08
5.1.30.0000.06010.38
5.1.20.0070.05310.43
5.1.10.0100.05310.05
5.1.00.0030.0479.89
5.0.50.0070.0338.63
5.0.40.0030.0478.51
5.0.30.0130.0508.51
5.0.20.0070.0408.51
5.0.10.0070.0408.51
5.0.00.0070.0608.51
4.4.90.0030.0338.51
4.4.80.0000.0378.51
4.4.70.0030.0378.51
4.4.60.0000.0378.51
4.4.50.0070.0308.51
4.4.40.0000.0538.51
4.4.30.0030.0278.51
4.4.20.0000.0408.51
4.4.10.0070.0308.51
4.4.00.0000.0508.51
4.3.110.0000.0378.51
4.3.100.0070.0308.51
4.3.90.0000.0338.51
4.3.80.0000.0538.51
4.3.70.0030.0338.51
4.3.60.0100.0278.51
4.3.50.0070.0308.51
4.3.40.0000.0508.51
4.3.30.0000.0378.51
4.3.20.0030.0378.51
4.3.10.0000.0308.51
4.3.00.0000.0208.51

preferences:
43.27 ms | 401 KiB | 5 Q