3v4l.org

run code in 300+ PHP versions simultaneously
<?php class AttackStream { function stream_open($path, $mode, $options, &$opened_path) { return true; } function stream_read($count) { echo $count,"\n"; return "AA"; } function stream_eof() { return true; } function stream_set_option() { return true; } function stream_seek($offset, $whence) { return false; } } stream_wrapper_register("attack", "AttackStream") or die("Failed to register protocol"); $f = fopen("attack://nothing", "r"); fread($f, 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.0120.00418.29
8.3.50.0110.00721.86
8.3.40.0040.01118.84
8.3.30.0060.00918.84
8.3.20.0050.00318.77
8.3.10.0040.00420.96
8.3.00.0050.00323.53
8.2.180.0090.01316.63
8.2.170.0100.00722.96
8.2.160.0030.01020.46
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0070.00318.04
8.2.110.0060.00320.53
8.2.100.0040.00717.84
8.2.90.0050.00319.05
8.2.80.0040.00418.04
8.2.70.0000.00817.50
8.2.60.0030.00617.68
8.2.50.0040.00418.07
8.2.40.0000.00818.34
8.2.30.0030.00619.77
8.2.20.0050.00217.69
8.2.10.0050.00217.69
8.2.00.0050.00317.69
8.1.280.0140.00025.92
8.1.270.0090.00023.99
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0070.00720.68
8.1.230.0080.00420.84
8.1.220.0040.00418.77
8.1.210.0050.00318.96
8.1.200.0060.00317.35
8.1.190.0070.00017.52
8.1.180.0000.00818.10
8.1.170.0000.00818.59
8.1.160.0040.00418.83
8.1.150.0050.00318.61
8.1.140.0040.00417.50
8.1.130.0000.00717.77
8.1.120.0030.00517.47
8.1.110.0030.00617.38
8.1.100.0000.00717.45
8.1.90.0000.00717.50
8.1.80.0040.00417.46
8.1.70.0000.00717.45
8.1.60.0030.00717.47
8.1.50.0050.00217.53
8.1.40.0040.00417.50
8.1.30.0030.00517.61
8.1.20.0040.00417.58
8.1.10.0080.00017.43
8.1.00.0040.00417.49
8.0.300.0040.00420.06
8.0.290.0040.00417.16
8.0.280.0000.00818.50
8.0.270.0030.00317.28
8.0.260.0030.00316.89
8.0.250.0070.00016.89
8.0.240.0000.00817.05
8.0.230.0000.00716.95
8.0.220.0070.00016.91
8.0.210.0040.00416.95
8.0.200.0000.00716.93
8.0.190.0000.00717.09
8.0.180.0070.00016.88
8.0.170.0030.00716.89
8.0.160.0040.00416.92
8.0.150.0030.00616.79
8.0.140.0030.00316.93
8.0.130.0030.00313.41
8.0.120.0000.00716.86
8.0.110.0070.00016.80
8.0.100.0000.00717.02
8.0.90.0000.00716.86
8.0.80.0090.00817.02
8.0.70.0040.00416.96
8.0.60.0000.00716.86
8.0.50.0040.00416.86
8.0.30.0110.00917.18
8.0.20.0100.00917.40
8.0.10.0080.00016.87
8.0.00.0100.01116.74
7.4.330.0060.00014.84
7.4.320.0030.00316.62
7.4.300.0070.00016.43
7.4.290.0040.00416.50
7.4.280.0040.00416.59
7.4.270.0030.00316.56
7.4.260.0060.00013.29
7.4.250.0050.00316.55
7.4.240.0000.00616.47
7.4.230.0030.00316.56
7.4.220.0120.00616.66
7.4.210.0030.01316.58
7.4.200.0000.00716.70
7.4.190.0000.00716.69
7.4.160.0080.00816.45
7.4.150.0120.00617.40
7.4.140.0120.00917.86
7.4.130.0110.00616.55
7.4.120.0090.00716.42
7.4.110.0140.00616.47
7.4.100.0190.00316.54
7.4.90.0090.00816.56
7.4.80.0090.00919.37
7.4.70.0070.01016.53
7.4.60.0100.00716.47
7.4.50.0000.00816.31
7.4.40.0030.01322.52
7.4.30.0060.01016.65
7.4.00.0080.00715.07
7.3.330.0000.00513.31
7.3.320.0040.00313.31
7.3.310.0030.00616.34
7.3.300.0030.00316.17
7.3.290.0100.00316.32
7.3.280.0100.00616.35
7.3.270.0070.01417.40
7.3.260.0090.00918.24
7.3.250.0100.00716.35
7.3.240.0140.00716.34
7.3.230.0030.01316.39
7.3.210.0060.01316.48
7.3.200.0090.00919.39
7.3.190.0100.00716.47
7.3.180.0070.01416.45
7.3.170.0070.01016.27
7.3.160.0000.01516.29
7.3.120.0040.01314.69
7.3.110.0060.01114.78
7.3.100.0070.00814.55
7.3.90.0040.00914.79
7.3.80.0070.01014.83
7.3.70.0020.01214.65
7.3.60.0090.00414.82
7.3.50.0050.00914.92
7.3.40.0070.01014.87
7.3.30.0120.00314.67
7.3.20.0070.00716.61
7.3.10.0060.00616.60
7.3.00.0050.01016.50
7.2.330.0070.01016.60
7.2.320.0110.01116.51
7.2.310.0030.01516.52
7.2.300.0120.00316.63
7.2.290.0060.01116.65
7.2.250.0100.00615.13
7.2.240.0090.01014.97
7.2.230.0090.00415.10
7.2.220.0080.00615.07
7.2.210.0030.00915.01
7.2.200.0060.00515.02
7.2.190.0060.00814.94
7.2.180.0050.01014.92
7.2.170.0050.01115.00
7.2.160.0020.01014.78
7.2.150.0070.00716.70
7.2.140.0070.00916.73
7.2.130.0110.00316.95
7.2.120.0100.00316.78
7.2.110.0060.00616.99
7.2.100.0050.00916.81
7.2.90.0070.00617.03
7.2.80.0010.01216.92
7.2.70.0050.01016.76
7.2.60.0080.00516.93
7.2.50.0060.00616.98
7.2.40.0060.00916.97
7.2.30.0070.00316.73
7.2.20.0040.01116.92
7.2.10.0060.00716.83
7.2.00.0060.00816.86
7.1.330.0090.00815.78
7.1.320.0030.01215.86
7.1.310.0050.00915.75
7.1.300.0070.00515.90
7.1.290.0070.00615.63
7.1.280.0070.00715.73
7.1.270.0030.00615.88
7.1.260.0050.01015.85
7.1.250.0050.00815.71
7.1.240.0070.00415.67
7.1.230.0110.00315.81
7.1.220.0040.00515.70
7.1.210.0080.00215.77
7.1.200.0100.00315.85
7.1.190.0090.00615.86
7.1.180.0070.00315.61
7.1.170.0040.00715.70
7.1.160.0020.01215.92
7.1.150.0050.00815.65
7.1.140.0050.00715.74
7.1.130.0080.00715.82
7.1.120.0060.01015.72
7.1.110.0030.01215.77
7.1.100.0070.00715.74
7.1.90.0070.00615.88
7.1.80.0050.00915.86
7.1.70.0070.00616.19
7.1.60.0070.00717.03
7.1.50.0040.01316.05
7.1.40.0050.01015.63
7.1.30.0070.00715.76
7.1.20.0060.00715.64
7.1.10.0070.00715.82
7.1.00.0050.02617.89
7.0.330.0020.01015.25
7.0.320.0020.00915.14
7.0.310.0050.00815.36
7.0.300.0020.01015.61
7.0.290.0090.00315.32
7.0.280.0040.00515.37
7.0.270.0070.00515.44
7.0.260.0030.01115.36
7.0.250.0000.00915.39
7.0.240.0010.00815.41
7.0.230.0050.00715.51
7.0.220.0050.00815.39
7.0.210.0050.00915.36
7.0.200.0060.00516.00
7.0.190.0050.00515.44
7.0.180.0090.00315.34
7.0.170.0060.00615.55
7.0.160.0110.00115.51
7.0.150.0070.00815.44
7.0.140.0060.02717.60
7.0.130.0070.00515.21
7.0.120.0060.00915.56
7.0.110.0100.00915.47
7.0.100.0050.00815.49
7.0.90.0020.01515.54
7.0.80.0070.00715.48
7.0.70.0060.01617.53
7.0.60.0050.01717.62
7.0.50.0090.02117.73
7.0.40.0080.03215.89
7.0.30.0060.03515.93
7.0.20.0080.02815.79
7.0.10.0090.03115.87
7.0.00.0100.03115.86
5.6.400.0060.00714.34
5.6.390.0070.00714.44
5.6.380.0050.00914.34
5.6.370.0070.00414.41
5.6.360.0020.01014.29
5.6.350.0030.00614.24
5.6.340.0040.00814.21
5.6.330.0060.01014.21
5.6.320.0030.01014.29
5.6.310.0060.00814.28
5.6.300.0030.00814.30
5.6.290.0020.01414.07
5.6.280.0040.03116.69
5.6.270.0070.00714.35
5.6.260.0090.00714.15
5.6.250.0090.01114.35
5.6.240.0020.01414.24
5.6.230.0070.00414.34
5.6.220.0040.01716.38
5.6.210.0030.02016.35
5.6.200.0080.03116.60
5.6.190.0080.02416.48
5.6.180.0100.02916.45
5.6.170.0090.03316.63
5.6.160.0070.03516.47
5.6.150.0040.03616.53
5.6.140.0060.03616.57
5.6.130.0070.03116.52
5.6.120.0040.03416.61
5.6.110.0060.04116.42
5.6.100.0040.02116.53
5.6.90.0060.02216.58
5.6.80.0060.03116.44
5.6.70.0070.03016.36
5.6.60.0060.03316.27
5.6.50.0060.02716.32
5.6.40.0080.02916.15
5.6.30.0060.03016.29
5.6.20.0050.03216.39
5.6.10.0040.03016.20
5.6.00.0050.02416.28
5.5.380.0070.00714.24
5.5.370.0110.00214.17
5.5.360.0040.01916.19
5.5.350.0040.02816.30
5.5.340.0110.02416.54
5.5.330.0090.02716.31
5.5.320.0040.03516.42
5.5.310.0070.02116.29
5.5.300.0040.03516.32
5.5.290.0050.03116.39
5.5.280.0050.03216.39
5.5.270.0050.02316.52
5.5.260.0010.03516.42
5.5.250.0040.03216.23
5.5.240.0060.03016.18
5.5.230.0070.03016.14
5.5.220.0050.02516.15
5.5.210.0080.02316.09
5.5.200.0060.02116.10
5.5.190.0060.03316.22
5.5.180.0090.03016.21
5.5.170.0050.01214.16
5.5.160.0040.02616.05
5.5.150.0050.02416.08
5.5.140.0060.01616.13
5.5.130.0070.01916.25
5.5.120.0060.03016.02
5.5.110.0020.03016.14
5.5.100.0060.02816.06
5.5.90.0030.03316.08
5.5.80.0060.02716.05
5.5.70.0050.02616.20
5.5.60.0070.02916.17
5.5.50.0020.03216.00
5.5.40.0040.03116.01
5.5.30.0070.02816.19
5.5.20.0050.03016.13
5.5.10.0060.03016.02
5.5.00.0060.02916.03
5.4.450.0080.02415.13
5.4.440.0040.03015.13
5.4.430.0010.02115.14
5.4.420.0030.02815.10
5.4.410.0050.02314.99
5.4.400.0030.03115.02
5.4.390.0060.02815.02
5.4.380.0050.02315.05
5.4.370.0070.02615.05
5.4.360.0020.03115.02
5.4.350.0060.03015.05
5.4.340.0050.02915.05
5.4.330.0020.00912.97
5.4.320.0030.02914.99
5.4.310.0020.03315.05
5.4.300.0030.01615.03
5.4.290.0030.02914.99
5.4.280.0010.02215.05
5.4.270.0050.02815.00
5.4.260.0040.02815.06
5.4.250.0050.02715.04
5.4.240.0010.02614.95
5.4.230.0060.02515.06
5.4.220.0010.02015.02
5.4.210.0020.02815.03
5.4.200.0060.02715.03
5.4.190.0020.02715.05
5.4.180.0050.02414.96
5.4.170.0030.01815.02
5.4.160.0030.03015.00
5.4.150.0050.02015.04
5.4.140.0060.02514.09
5.4.130.0060.02514.03
5.4.120.0060.02414.03
5.4.110.0070.02614.11
5.4.100.0040.02914.14
5.4.90.0030.02314.17
5.4.80.0060.02814.14
5.4.70.0060.02614.09
5.4.60.0030.02314.08
5.4.50.0010.03014.13
5.4.40.0040.02514.16
5.4.30.0020.02814.13
5.4.20.0050.02514.10
5.4.10.0050.02614.13
5.4.00.0030.02613.80
5.3.290.0060.01913.56
5.3.280.0020.03113.51
5.3.270.0010.02313.49
5.3.260.0060.02713.55
5.3.250.0020.02913.50
5.3.240.0030.02613.52
5.3.230.0040.02613.51
5.3.220.0030.02813.53
5.3.210.0050.02413.52
5.3.200.0040.03013.47
5.3.190.0020.02513.54
5.3.180.0040.03013.48
5.3.170.0040.02913.48
5.3.160.0010.02713.51
5.3.150.0040.02913.54
5.3.140.0030.03113.49
5.3.130.0020.02713.54
5.3.120.0060.02413.52
5.3.110.0030.03013.47
5.3.100.0020.02513.31
5.3.90.0060.02413.30
5.3.80.0040.02313.34
5.3.70.0010.03113.34
5.3.60.0000.03513.29
5.3.50.0040.02913.33
5.3.40.0030.03213.31
5.3.30.0050.02313.28
5.3.20.0030.02713.19
5.3.10.0020.02713.21
5.3.00.0060.02613.23
5.2.170.0000.06311.35
5.2.160.0030.06011.35
5.2.150.0030.05711.35
5.2.140.0070.05711.35
5.2.130.0130.04711.35
5.2.120.0130.05311.35
5.2.110.0070.05711.35
5.2.100.0030.06311.35
5.2.90.0070.05711.35
5.2.80.0000.05311.35
5.2.70.0070.05711.35
5.2.60.0000.05711.35
5.2.50.0070.05711.35
5.2.40.0030.06711.35
5.2.30.0030.06011.35
5.2.20.0000.05711.35
5.2.10.0030.05011.35
5.2.00.0070.05711.35
5.1.60.0030.05311.35
5.1.50.0000.04711.35
5.1.40.0030.05011.35
5.1.30.0100.03711.35
5.1.20.0000.06311.35
5.1.10.0000.04311.35
5.1.00.0000.03711.35
5.0.50.0030.04711.35
5.0.40.0000.03711.35
5.0.30.0030.06711.35
5.0.20.0100.03711.35
5.0.10.0070.03011.35
5.0.00.0030.06011.35
4.4.90.0000.03011.35
4.4.80.0030.03311.35
4.4.70.0000.03311.35
4.4.60.0000.02711.35
4.4.50.0070.03311.35
4.4.40.0030.04311.35
4.4.30.0030.03311.35
4.4.20.0030.02011.35
4.4.10.0000.02311.35
4.4.00.0030.05011.35
4.3.110.0030.02711.35
4.3.100.0070.02311.35
4.3.90.0030.03311.35
4.3.80.0030.05011.35
4.3.70.0030.03011.35
4.3.60.0030.03311.35
4.3.50.0070.03011.35
4.3.40.0030.05311.35
4.3.30.0030.03311.35
4.3.20.0000.03311.35
4.3.10.0030.03311.35
4.3.00.0000.03311.35

preferences:
116.97 ms | 401 KiB | 5 Q