3v4l.org

run code in 300+ PHP versions simultaneously
<?php function add_some_extra($string) { $string .= 'and something extra.'; } $str = 'This is a string, '; add_some_extra($str); echo $str; // outputs 'This is a string, and something extra.' ?>

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.40.0060.00918.76
8.3.30.0000.01418.92
8.3.20.0060.00320.21
8.3.10.0040.00421.77
8.3.00.0060.00319.31
8.2.170.0060.00922.96
8.2.160.0130.00020.53
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0000.00722.25
8.2.110.0060.00322.11
8.2.100.0090.00317.97
8.2.90.0000.00919.35
8.2.80.0030.00518.05
8.2.70.0050.00317.50
8.2.60.0050.00517.93
8.2.50.0060.00318.07
8.2.40.0000.00718.34
8.2.30.0060.00717.88
8.2.20.0040.00817.72
8.2.10.0050.00717.71
8.2.00.0110.00217.64
8.1.270.0050.00324.02
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00423.96
8.1.230.0070.00419.00
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0030.00617.22
8.1.190.0000.00817.18
8.1.180.0090.00018.10
8.1.170.0040.00418.60
8.1.160.0080.00419.54
8.1.150.0070.00717.98
8.1.140.0110.00218.32
8.1.130.0040.00918.41
8.1.120.0100.00217.33
8.1.110.0100.00317.46
8.1.100.0060.00517.40
8.1.90.0090.00417.40
8.1.80.0080.00417.40
8.1.70.0110.00317.29
8.1.60.0070.00717.61
8.1.50.0090.00417.48
8.1.40.0050.00918.43
8.1.30.0080.00517.63
8.1.20.0100.00517.67
8.1.10.0110.00217.43
8.1.00.0080.00617.45
8.0.300.0080.00018.77
8.0.290.0040.00417.05
8.0.280.0030.00917.55
8.0.270.0030.00616.92
8.0.260.0030.00717.66
8.0.250.0100.00016.87
8.0.240.0090.00216.88
8.0.230.0060.00416.83
8.0.220.0050.00517.62
8.0.210.0050.00516.79
8.0.200.0050.00516.81
8.0.190.0050.00416.86
8.0.180.0040.00617.62
8.0.170.0030.00616.74
8.0.160.0030.00616.81
8.0.150.0060.00417.61
8.0.140.0000.00916.64
8.0.130.0050.00414.98
8.0.120.0040.00617.63
8.0.110.0050.00616.75
8.0.100.0070.00216.72
8.0.90.0040.00517.69
8.0.80.0060.00816.78
8.0.70.0050.00416.80
8.0.60.0040.00716.69
8.0.50.0020.00716.70
8.0.30.0110.00516.97
8.0.20.0100.00817.20
8.0.10.0040.00516.95
8.0.00.0100.00616.60
7.4.330.0020.00415.40
7.4.320.0070.00616.47
7.4.300.0090.00316.44
7.4.290.0070.00516.53
7.4.280.0040.00816.43
7.4.270.0090.00316.54
7.4.260.0090.00316.37
7.4.250.0070.00616.41
7.4.240.0070.00316.51
7.4.230.0090.00416.50
7.4.220.0090.00717.38
7.4.210.0090.00816.50
7.4.200.0040.00717.39
7.4.190.0080.00417.38
7.4.180.0160.00016.37
7.4.160.0110.00816.33
7.4.150.0100.00616.86
7.4.140.0090.00717.34
7.4.130.0120.00616.38
7.4.120.0120.00416.99
7.4.110.0130.00316.31
7.4.100.0090.00716.40
7.4.90.0110.00616.33
7.4.80.0100.00817.93
7.4.70.0090.00716.45
7.4.60.0120.00416.43
7.4.50.0080.00316.51
7.4.40.0090.00419.54
7.4.30.0110.00716.46
7.4.20.0150.00016.37
7.4.10.0140.00016.28
7.4.00.0090.00515.71
7.3.330.0080.00314.71
7.3.320.0110.00214.70
7.3.310.0070.00416.29
7.3.300.0060.00516.20
7.3.290.0120.00316.26
7.3.280.0120.00416.27
7.3.270.0080.01016.72
7.3.260.0100.00916.31
7.3.250.0110.00716.37
7.3.240.0140.00516.35
7.3.230.0140.00216.23
7.3.220.0130.00416.17
7.3.210.0170.00017.33
7.3.200.0140.00217.73
7.3.190.0100.00716.27
7.3.180.0130.00316.29
7.3.170.0090.00616.29
7.3.160.0100.00816.34
7.3.150.0100.00716.09
7.3.140.0130.00316.06
7.3.130.0110.00516.17
7.3.120.0110.00515.44
7.3.110.0140.00215.36
7.3.100.0090.00515.38
7.3.90.0110.00415.46
7.3.80.0080.00615.52
7.3.70.0050.00815.59
7.3.60.0060.00815.48
7.3.50.0100.00615.56
7.3.40.0060.00715.59
7.3.30.0120.00315.61
7.3.20.0110.00417.40
7.3.10.0090.00717.25
7.3.00.0110.00417.28
7.2.340.0110.00416.25
7.2.330.0110.00616.32
7.2.320.0090.00916.38
7.2.310.0080.00916.35
7.2.300.0130.00916.29
7.2.290.0120.00716.33
7.2.280.0170.00016.15
7.2.270.0120.00416.20
7.2.260.0110.00616.04
7.2.250.0060.01016.21
7.2.240.0130.00415.47
7.2.230.0090.00615.59
7.2.220.0080.00815.43
7.2.210.0070.00915.58
7.2.200.0120.00315.50
7.2.190.0110.00515.64
7.2.180.0080.00715.58
7.2.170.0110.00715.56
7.2.160.0100.00615.63
7.2.150.0100.00817.37
7.2.140.0100.00617.48
7.2.130.0090.00417.65
7.2.120.0090.00717.48
7.2.110.0100.00417.62
7.2.100.0060.00917.53
7.2.90.0100.00617.67
7.2.80.0080.00717.56
7.2.70.0080.01017.53
7.2.60.0100.00617.21
7.2.50.0060.00917.58
7.2.40.0090.00917.45
7.2.30.0090.00817.63
7.2.20.0100.00517.58
7.2.10.0120.00517.52
7.2.00.0080.00718.21
7.1.330.0100.00516.36
7.1.320.0070.00716.54
7.1.310.0110.00416.56
7.1.300.0080.00516.54
7.1.290.0090.00716.51
7.1.280.0110.00416.53
7.1.270.0080.00716.45
7.1.260.0070.00916.36
7.1.250.0040.00916.47
7.1.240.0050.01117.07
7.1.230.0170.00017.13
7.1.220.0110.00517.30
7.1.210.0120.00317.18
7.1.200.0140.00216.46
7.1.190.0120.00417.12
7.1.180.0160.00017.08
7.1.170.0140.00217.08
7.1.160.0140.00517.07
7.1.150.0140.00017.08
7.1.140.0120.00617.19
7.1.130.0120.00817.23
7.1.120.0050.01017.20
7.1.110.0120.00217.18
7.1.100.0080.00717.60
7.1.90.0100.00517.08
7.1.80.0080.00717.09
7.1.70.0080.00517.05
7.1.60.0060.01218.25
7.1.50.0160.00625.88
7.1.40.0150.00017.20
7.1.30.0160.00017.19
7.1.20.0080.00817.23
7.1.10.0190.00017.18
7.1.00.0080.04019.74
7.0.330.0040.01216.91
7.0.320.0100.00516.71
7.0.310.0090.00516.84
7.0.300.0130.00316.88
7.0.290.0150.00016.73
7.0.280.0110.00416.88
7.0.270.0110.00416.79
7.0.260.0120.00516.77
7.0.250.0100.00517.07
7.0.240.0100.00517.07
7.0.230.0120.00416.90
7.0.220.0110.00416.85
7.0.210.0170.00016.86
7.0.200.0110.00316.66
7.0.190.0150.00016.96
7.0.180.0070.00816.95
7.0.170.0100.00716.91
7.0.160.0160.00016.93
7.0.150.0130.00316.98
7.0.140.0070.03919.41
7.0.130.0120.00416.87
7.0.120.0120.00617.06
7.0.110.0040.01216.86
7.0.100.0070.03018.45
7.0.90.0100.02818.38
7.0.80.0150.02018.40
7.0.70.0110.02718.46
7.0.60.0100.02018.44
7.0.50.0120.04218.59
7.0.40.0090.04518.49
7.0.30.0080.04718.53
7.0.20.0030.04518.44
7.0.10.0110.04418.63
7.0.00.0100.03818.44
5.6.400.0090.00515.66
5.6.390.0090.00415.66
5.6.380.0100.00315.86
5.6.370.0080.00815.75
5.6.360.0090.00515.70
5.6.350.0130.00015.69
5.6.340.0130.00015.86
5.6.330.0090.00315.72
5.6.320.0100.00315.80
5.6.310.0110.00315.88
5.6.300.0090.00415.66
5.6.290.0030.01015.81
5.6.280.0080.03518.44
5.6.270.0100.00315.86
5.6.260.0100.00215.81
5.6.250.0050.02818.27
5.6.240.0120.03818.24
5.6.230.0090.04218.17
5.6.220.0120.03718.24
5.6.210.0080.02718.29
5.6.200.0100.02818.56
5.6.190.0120.04318.53
5.6.180.0120.02318.39
5.6.170.0100.04018.52
5.6.160.0100.02518.43
5.6.150.0080.03918.41
5.6.140.0070.04718.49
5.6.130.0070.04818.48
5.6.120.0040.04718.35
5.6.110.0060.04018.37
5.6.100.0100.04018.35
5.6.90.0140.03418.44
5.6.80.0100.02318.08
5.6.70.0150.03518.18
5.6.60.0050.04618.10
5.6.50.0110.03318.12
5.6.40.0070.02318.14
5.6.30.0110.02818.12
5.6.20.0090.04218.14
5.6.10.0120.04018.08
5.6.00.0080.02518.02
5.5.380.0150.03318.23
5.5.370.0140.03418.08
5.5.360.0060.04018.04
5.5.350.0100.02518.11
5.5.340.0020.03718.25
5.5.330.0160.03518.30
5.5.320.0080.04118.24
5.5.310.0100.04518.15
5.5.300.0060.03318.31
5.5.290.0150.02718.31
5.5.280.0040.04118.29
5.5.270.0080.02318.23
5.5.260.0060.04918.24
5.5.250.0080.03618.29
5.5.240.0130.02018.00
5.5.230.0060.03717.98
5.5.220.0050.03217.84
5.5.210.0070.03117.93
5.5.200.0070.02517.96
5.5.190.0080.04017.98
5.5.180.0100.03617.96
5.5.170.0110.00315.75
5.5.160.0120.03717.90
5.5.150.0050.03717.92
5.5.140.0030.02617.91
5.5.130.0110.04017.89
5.5.120.0110.03817.96
5.5.110.0080.04217.94
5.5.100.0060.04217.82
5.5.90.0110.02017.88
5.5.80.0090.04017.89
5.5.70.0080.03817.85
5.5.60.0060.04017.97
5.5.50.0110.02017.88
5.5.40.0080.04117.95
5.5.30.0080.03017.98
5.5.20.0080.03917.83
5.5.10.0070.03717.85
5.5.00.0090.04317.83
5.4.450.0140.01717.60
5.4.440.0090.04217.55
5.4.430.0090.04017.50
5.4.420.0080.03017.44
5.4.410.0070.03217.38
5.4.400.0070.02317.42
5.4.390.0120.02017.27
5.4.380.0050.02717.38
5.4.370.0080.02517.46
5.4.360.0080.02217.41
5.4.350.0030.04417.30
5.4.340.0050.04517.28
5.4.330.0100.00015.66
5.4.320.0060.04017.39
5.4.310.0040.02617.37
5.4.300.0110.03117.42
5.4.290.0050.02917.28
5.4.280.0100.03217.39
5.4.270.0080.01917.42
5.4.260.0060.03117.39
5.4.250.0090.03717.45
5.4.240.0090.03917.40
5.4.230.0040.04317.30
5.4.220.0080.02917.28
5.4.210.0030.02517.39
5.4.200.0080.04517.44
5.4.190.0050.02517.28
5.4.180.0050.03217.26
5.4.170.0050.04017.34
5.4.160.0030.04217.27
5.4.150.0130.03517.26
5.4.140.0080.03516.02
5.4.130.0100.03516.01
5.4.120.0090.03416.02
5.4.110.0100.01716.08
5.4.100.0020.02416.09
5.4.90.0080.01716.01
5.4.80.0030.02216.06
5.4.70.0040.02215.96
5.4.60.0050.02016.01
5.4.50.0040.02316.02
5.4.40.0100.01516.10
5.4.30.0060.02216.06
5.4.20.0100.01716.06
5.4.10.0030.02315.98
5.4.00.0050.01815.75
5.3.290.0050.03215.19
5.3.280.0100.03015.09
5.3.270.0100.02315.16
5.3.260.0030.04715.13
5.3.250.0090.02315.10
5.3.240.0090.03815.16
5.3.230.0120.03215.14
5.3.220.0050.03715.09
5.3.210.0000.02715.11
5.3.200.0070.01815.14
5.3.190.0080.01715.09
5.3.180.0040.02115.05
5.3.170.0050.02315.16
5.3.160.0050.02015.13
5.3.150.0090.01715.10
5.3.140.0090.01815.08
5.3.130.0080.01815.06
5.3.120.0090.03515.13
5.3.110.0060.02015.11
5.3.100.0030.02114.89
5.3.90.0070.01714.91
5.3.80.0050.02014.87
5.3.70.0090.01714.90
5.3.60.0050.02014.83
5.3.50.0020.02214.82
5.3.40.0080.02214.79
5.3.30.0020.02314.83
5.3.20.0020.02114.69
5.3.10.0080.01714.68
5.3.00.0050.02014.64

preferences:
44.42 ms | 400 KiB | 5 Q