3v4l.org

run code in 300+ PHP versions simultaneously
<?php // In response to http://www.php.net/manual/en/language.constants.predefined.php#113130 // In fact, you can define magic constants too. (@__DIR__ == '__DIR__') && define('__DIR__', dirname(__FILE__)); echo "result of var_dump(__DIR__):", __DIR__; //var_dump(__DIR__);

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.0150.00418.17
8.3.50.0160.00321.17
8.3.40.0110.00418.52
8.3.30.0100.00318.96
8.3.20.0040.00420.18
8.3.10.0090.00023.66
8.3.00.0090.00918.89
8.2.180.0110.00718.29
8.2.170.0130.00622.96
8.2.160.0130.00020.33
8.2.150.0030.00724.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0050.00319.23
8.2.110.0080.00320.94
8.2.100.0110.00017.72
8.2.90.0030.00720.88
8.2.80.0060.00317.80
8.2.70.0040.00417.36
8.2.60.0000.00817.91
8.2.50.0090.00018.07
8.2.40.0040.00418.03
8.2.30.0000.00818.04
8.2.20.0000.00717.61
8.2.10.0040.00417.97
8.2.00.0000.00819.76
8.1.280.0140.00325.92
8.1.270.0060.00320.34
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0060.00322.42
8.1.230.0040.00720.84
8.1.220.0050.00317.74
8.1.210.0040.00419.02
8.1.200.0070.00317.10
8.1.190.0060.00317.29
8.1.180.0040.00418.10
8.1.170.0040.00418.72
8.1.160.0000.00718.71
8.1.150.0040.00418.77
8.1.140.0000.00717.24
8.1.130.0030.00317.74
8.1.120.0020.00517.36
8.1.110.0000.00717.38
8.1.100.0000.00717.42
8.1.90.0020.00517.36
8.1.80.0040.00417.36
8.1.70.0000.00717.40
8.1.60.0030.00617.41
8.1.50.0080.00017.42
8.1.40.0000.00817.44
8.1.30.0030.00517.49
8.1.20.0030.00817.50
8.1.10.0030.00617.30
8.1.00.0000.00717.41
8.0.300.0110.00019.77
8.0.290.0000.00816.75
8.0.280.0070.00018.24
8.0.270.0030.00317.13
8.0.260.0070.00016.80
8.0.250.0000.00616.86
8.0.240.0070.00016.85
8.0.230.0030.00316.79
8.0.220.0070.00016.83
8.0.210.0030.00516.78
8.0.200.0000.00716.86
8.0.190.0070.00016.93
8.0.180.0090.00016.73
8.0.170.0080.00016.71
8.0.160.0050.00216.80
8.0.150.0040.00416.75
8.0.140.0080.00016.68
8.0.130.0060.00013.32
8.0.120.0030.00616.61
8.0.110.0040.00416.80
8.0.100.0030.00516.76
8.0.90.0070.00016.88
8.0.80.0120.00616.70
8.0.70.0020.00516.84
8.0.60.0040.00416.82
8.0.50.0040.00416.63
8.0.30.0110.00716.85
8.0.20.0100.01117.40
8.0.10.0000.00716.89
8.0.00.0130.01216.85
7.4.330.0030.00315.03
7.4.320.0060.00016.43
7.4.300.0000.00616.40
7.4.290.0030.00316.44
7.4.280.0000.00716.33
7.4.270.0030.00316.28
7.4.260.0030.00316.51
7.4.250.0040.00416.42
7.4.240.0040.00316.43
7.4.230.0000.00716.53
7.4.220.0140.00416.36
7.4.210.0060.01316.47
7.4.200.0070.00016.35
7.4.160.0110.00816.43
7.4.150.0140.00617.40
7.4.140.0140.00817.86
7.4.130.0080.01416.61
7.4.120.0060.01316.35
7.4.110.0150.00316.41
7.4.100.0170.00716.23
7.4.90.0130.00416.31
7.4.80.0100.00719.39
7.4.70.0120.00416.48
7.4.60.0100.00716.29
7.4.50.0030.00516.52
7.4.40.0120.00916.30
7.4.30.0030.01316.55
7.4.00.0090.00614.84
7.3.330.0000.00513.11
7.3.320.0030.00312.87
7.3.310.0030.00316.21
7.3.300.0030.00316.01
7.3.290.0050.00916.08
7.3.280.0140.00516.11
7.3.270.0100.01317.40
7.3.260.0060.00916.14
7.3.250.0110.00816.35
7.3.240.0130.00616.41
7.3.230.0120.00916.39
7.3.210.0140.00816.47
7.3.200.0150.00616.58
7.3.190.0060.01616.29
7.3.180.0040.01116.39
7.3.170.0050.01116.29
7.3.160.0040.01116.30
7.2.330.0070.01016.38
7.2.320.0120.00916.47
7.2.310.0120.00616.57
7.2.300.0080.00816.52
7.2.290.0110.01116.38
7.2.60.0040.01116.54
7.2.00.0000.01119.32
7.1.200.0060.00915.80
7.1.100.0030.01317.71
7.1.70.0000.01217.00
7.1.60.0060.01919.86
7.1.50.0100.01316.50
7.1.00.0030.09022.36
7.0.200.0000.00816.71
7.0.60.0130.07719.95
7.0.50.0000.08317.84
7.0.40.0100.03720.39
7.0.30.0270.04720.04
7.0.20.0270.05020.09
7.0.10.0030.08020.16
7.0.00.0030.09020.29
5.6.280.0030.07321.12
5.6.210.0070.03720.61
5.6.200.0100.04318.13
5.6.190.0030.08720.41
5.6.180.0470.07320.61
5.6.170.0230.07020.62
5.6.160.0070.07320.48
5.6.150.0030.06018.22
5.6.140.0130.08018.13
5.6.130.0200.06718.15
5.6.120.0100.04021.13
5.6.110.0030.08321.06
5.6.100.0070.06320.95
5.6.90.0130.07321.05
5.6.80.0000.04020.37
5.5.350.0230.07720.41
5.5.340.0070.03318.02
5.5.330.0070.08020.37
5.5.320.0400.04320.27
5.5.310.0230.03320.25
5.5.300.0030.06717.98
5.5.290.0130.07717.91
5.5.280.0070.04020.67
5.5.270.0100.07320.79
5.5.260.0100.08320.75
5.5.250.0170.04720.49
5.5.240.0100.07020.36
5.4.450.0270.05319.52
5.4.440.0600.05019.15
5.4.430.0170.04719.45
5.4.420.0070.05719.63
5.4.410.0170.04719.19
5.4.400.0100.05019.18
5.4.390.0100.05019.05
5.4.380.0070.05718.94
5.4.370.0200.04318.96
5.4.360.0200.05018.98
5.4.350.0130.05018.98
5.4.340.0230.04318.95
5.4.320.0030.06019.05
5.4.310.0230.04319.12
5.4.300.0030.05719.13
5.4.290.0170.04319.14
5.4.280.0130.05319.04
5.4.270.0100.05318.99
5.4.260.0130.04718.97
5.4.250.0070.05319.16
5.4.240.0130.05019.25
5.4.230.0070.05319.04
5.4.220.0100.05719.01
5.4.210.0070.05319.04
5.4.200.0070.05316.80
5.4.190.0100.05019.13
5.4.180.0130.08319.05
5.4.170.0130.05018.92
5.4.160.0130.06019.03
5.4.150.0100.05018.97
5.4.140.0070.05316.55
5.4.130.0100.04716.34
5.4.120.0070.05316.13
5.4.110.0070.05016.20
5.4.100.0170.04316.52
5.4.90.0070.05316.35
5.4.80.0070.05016.52
5.4.70.0070.05316.47
5.4.60.0030.05716.33
5.4.50.0170.04316.40
5.4.40.0200.04016.49
5.4.30.0100.04716.34
5.4.20.0130.06316.38
5.4.10.0130.04716.50
5.4.00.0030.05315.69
5.3.290.0170.04714.55
5.3.280.0070.05314.60
5.3.270.0070.05714.44
5.3.260.0070.05714.60
5.3.250.0030.05714.44
5.3.240.0100.05014.62
5.3.230.0030.05714.51
5.3.220.0100.05014.41
5.3.210.0130.05014.42
5.3.200.0100.05014.57
5.3.190.0100.05014.48
5.3.180.0100.05014.45
5.3.170.0170.04314.43
5.3.160.0100.04714.43
5.3.150.0030.05714.43
5.3.140.0030.05714.44
5.3.130.0070.06714.33
5.3.120.0170.04714.40
5.3.110.0200.04714.52
5.3.100.0130.04714.04
5.3.90.0000.05714.02
5.3.80.0200.03713.85
5.3.70.0070.05013.85
5.3.60.0130.05313.87
5.3.50.0100.05013.78
5.3.40.0100.05013.80
5.3.30.0070.05013.88
5.3.20.0030.05313.69
5.3.10.0070.05013.49
5.3.00.0130.04713.64
5.2.170.0130.04310.98
5.2.160.0100.03711.24
5.2.150.0070.04710.98
5.2.140.0000.05011.19
5.2.130.0070.04010.99
5.2.120.0130.03311.18
5.2.110.0030.04311.02
5.2.100.0030.04310.94
5.2.90.0070.04310.96
5.2.80.0070.04010.95
5.2.70.0070.04010.94
5.2.60.0100.03711.14
5.2.50.0070.04010.86
5.2.40.0070.04010.98
5.2.30.0100.03710.80
5.2.20.0030.04310.91
5.2.10.0130.03311.01
5.2.00.0130.04710.69
5.1.60.0070.04310.04
5.1.50.0030.03710.12
5.1.40.0170.0379.97
5.1.30.0070.04710.18
5.1.20.0070.03710.27
5.1.10.0100.03010.10
5.1.00.0070.03310.06
5.0.50.0030.0308.68
5.0.40.0030.0278.44
5.0.30.0070.0438.21
5.0.20.0030.0278.12
5.0.10.0130.0208.30
5.0.00.0030.0438.15
4.4.90.0070.0205.74
4.4.80.0070.0235.74
4.4.70.0000.0235.73
4.4.60.0000.0275.80
4.4.50.0070.0175.80
4.4.40.0000.0375.88
4.4.30.0030.0205.73
4.4.20.0070.0205.89
4.4.10.0030.0205.92
4.4.00.0030.0335.83
4.3.110.0000.0275.66
4.3.100.0000.0235.68
4.3.90.0100.0135.81
4.3.80.0070.0335.65
4.3.70.0030.0205.75
4.3.60.0070.0175.64
4.3.50.0000.0235.73
4.3.40.0030.0335.73
4.3.30.0000.0234.46
4.3.20.0000.0234.48
4.3.10.0000.0234.34
4.3.00.0170.0237.69

preferences:
50.19 ms | 401 KiB | 5 Q