3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = ['test' => [1,2,3]]; $process = proc_open( 'set', array( 0 => array('pipe', 'r'), 1 => array('pipe', 'w'), ), $pipes, null, $x ); if (is_resource($process)) { fclose($pipes[0]); stream_get_contents($pipes[1]); fclose($pipes[1]); var_dump(proc_close($process)); } print_r($x);

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.0170.00318.43
8.3.50.0100.00817.41
8.3.40.0130.00618.64
8.3.30.0040.01118.83
8.3.20.0000.00818.95
8.3.10.0030.00620.52
8.3.00.0050.00317.75
8.2.180.0130.00716.75
8.2.170.0070.00722.96
8.2.160.0100.00322.25
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0070.00019.83
8.2.110.0070.00322.30
8.2.100.0060.00617.72
8.2.90.0040.00417.88
8.2.80.0000.00818.74
8.2.70.0000.00917.63
8.2.60.0060.00317.63
8.2.50.0050.00517.38
8.2.40.0030.00617.75
8.2.30.0040.00418.06
8.2.20.0040.00417.54
8.2.10.0030.00617.73
8.2.00.0040.00417.75
8.1.280.0030.01025.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00421.16
8.1.230.0110.00017.77
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0080.00417.35
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0080.00018.50
8.1.160.0070.00018.89
8.1.150.0030.00718.55
8.1.140.0000.01017.30
8.1.130.0000.00817.83
8.1.120.0000.00717.32
8.1.110.0040.00417.43
8.1.100.0040.00417.46
8.1.90.0070.00317.46
8.1.80.0050.00517.47
8.1.70.0030.00317.40
8.1.60.0030.00517.53
8.1.50.0070.00017.50
8.1.40.0040.00417.45
8.1.30.0040.00417.63
8.1.20.0040.00417.68
8.1.10.0030.00517.59
8.1.00.0040.00417.56
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.00718.43
8.0.270.0040.00417.19
8.0.260.0000.00716.76
8.0.250.0040.00416.93
8.0.240.0060.00316.97
8.0.230.0070.00016.87
8.0.220.0000.00716.84
8.0.210.0040.00316.83
8.0.200.0000.00616.93
8.0.190.0040.00416.85
8.0.180.0000.00716.81
8.0.170.0000.00816.91
8.0.160.0040.00417.00
8.0.150.0050.00216.91
8.0.140.0040.00416.89
8.0.130.0030.00313.35
8.0.120.0000.00716.84
8.0.110.0030.00516.91
8.0.100.0040.00416.79
8.0.90.0030.00516.81
8.0.80.0060.00916.82
8.0.70.0000.01016.93
8.0.60.0000.00816.75
8.0.50.0000.00716.74
8.0.30.0100.00917.00
8.0.20.0210.00017.07
8.0.10.0070.00017.01
8.0.00.0100.00716.63
7.4.330.0020.00214.89
7.4.320.0000.00616.36
7.4.300.0030.00316.41
7.4.290.0080.00016.45
7.4.280.0030.00516.46
7.4.270.0000.00716.47
7.4.260.0050.00013.39
7.4.250.0050.00516.53
7.4.240.0030.00316.36
7.4.230.0070.00016.52
7.4.220.0070.01016.51
7.4.210.0080.00816.59
7.4.200.0000.00716.34
7.4.190.0030.00316.55
7.4.160.0120.00316.41
7.4.150.0120.00617.07
7.4.140.0130.00617.16
7.4.130.0110.00616.41
7.4.120.0100.00816.43
7.4.110.0120.01216.64
7.4.100.0100.01016.50
7.4.90.0130.00316.41
7.4.80.0130.00318.80
7.4.70.0120.01216.54
7.4.60.0140.00316.44
7.4.50.0040.00423.17
7.4.40.0060.00921.69
7.4.30.0060.01616.52
7.4.00.0110.00414.78
7.3.330.0050.00013.26
7.3.320.0060.00013.17
7.3.310.0000.00616.14
7.3.300.0070.00016.12
7.3.290.0070.01116.21
7.3.280.0080.00716.19
7.3.270.0090.00817.07
7.3.260.0130.00718.24
7.3.250.0100.00816.26
7.3.240.0110.00716.32
7.3.230.0090.00916.52
7.3.210.0070.01016.42
7.3.200.0110.01119.39
7.3.190.0150.00616.45
7.3.180.0140.00316.45
7.3.170.0100.00616.43
7.3.160.0090.00616.15
7.3.120.0100.00314.74
7.2.330.0080.01216.61
7.2.320.0170.00016.44
7.2.310.0070.01616.63
7.2.300.0070.01016.28
7.2.290.0030.01316.57
7.2.80.0060.00316.53
7.2.60.0120.00416.96
7.2.00.0060.01019.23
7.1.200.0100.00315.76
7.1.100.0060.00418.26
7.1.70.0060.00716.96
7.1.60.0100.01419.40
7.1.50.0060.01517.11
7.1.00.0070.07722.61
7.0.200.0040.00716.84
7.0.140.0100.06322.09
7.0.120.0030.03022.02
7.0.60.0100.07719.90
7.0.50.0200.06017.86
7.0.40.0030.05717.76
7.0.30.0030.08317.81
7.0.20.0100.08017.72
7.0.10.0170.06317.79
7.0.00.0130.03717.85
5.6.210.0070.03720.47
5.6.200.0070.04018.32
5.6.190.0100.08318.18
5.6.180.0100.04318.14
5.6.170.0070.06318.17
5.6.160.0030.08718.23
5.6.150.0000.05718.23
5.6.140.0130.07018.31
5.6.130.0030.04718.22
5.6.120.0100.04318.22
5.6.110.0070.04018.19
5.6.100.0070.04718.28
5.6.90.0000.06318.23
5.6.80.0030.08017.53
5.6.70.0030.08017.56
5.6.60.0070.06017.65
5.6.50.0100.06017.63
5.6.40.0100.03317.56
5.6.30.0070.05717.59
5.6.20.0000.08317.56
5.6.10.0070.05317.58
5.6.00.0100.03317.52
5.5.350.0230.04020.52
5.5.340.0100.04018.03
5.5.330.0170.07018.03
5.5.320.0100.06317.97
5.5.310.0100.06718.03
5.5.300.0100.03718.05
5.5.290.0030.04318.02
5.5.280.0070.08318.03
5.5.270.0030.08018.05
5.5.260.0000.07317.93
5.5.250.0170.06017.80
5.5.240.0130.07317.49
5.5.230.0030.06017.44
5.5.220.0100.06017.45
5.5.210.0130.07317.37
5.5.200.0030.08017.43
5.5.190.0030.07717.36
5.5.180.0100.08017.36
5.5.160.0100.04317.38
5.5.150.0070.03717.35
5.5.140.0130.03317.36
5.5.130.0100.05317.36
5.5.120.0070.05317.35
5.5.110.0070.07317.37
5.5.100.0030.07317.18
5.5.90.0130.05017.26
5.5.80.0070.05717.23
5.5.70.0070.06017.17
5.5.60.0070.06017.24
5.5.50.0100.08017.27
5.5.40.0030.04017.24
5.5.30.0130.06017.25
5.5.20.0070.06317.24
5.5.10.0070.04017.11
5.5.00.0100.06717.29
5.4.450.0130.05319.36
5.4.440.0030.04719.33
5.4.430.0000.08719.31
5.4.420.0170.07719.37
5.4.410.0130.07319.46
5.4.400.0100.07019.27
5.4.390.0070.04719.09
5.4.380.0030.05019.01
5.4.370.0170.05019.13
5.4.360.0170.06319.13
5.4.350.0030.04719.03
5.4.340.0070.05719.01
5.4.320.0000.05019.01
5.4.310.0030.04319.05
5.4.300.0100.07718.89
5.4.290.0030.04719.02
5.4.280.0070.08018.89
5.4.270.0130.07319.02
5.4.260.0100.05018.99
5.4.250.0100.07018.98
5.4.240.0070.05018.97
5.4.230.0030.08318.89
5.4.220.0100.07318.98
5.4.210.0130.05318.98
5.4.200.0130.07018.98
5.4.190.0070.04018.97
5.4.180.0000.05719.02
5.4.170.0030.08319.02
5.4.160.0030.07318.89
5.4.150.0070.06718.96
5.4.140.0030.06716.36
5.4.130.0100.03716.44
5.4.120.0070.07316.44
5.4.110.0130.02716.36
5.4.100.0070.06316.46
5.4.90.0030.07316.41
5.4.80.0100.03016.41
5.4.70.0130.07316.27
5.4.60.0070.04316.54
5.4.50.0030.08316.30
5.4.40.0170.06716.26
5.4.30.0070.07016.32
5.4.20.0070.06316.21
5.4.10.0000.04016.30
5.4.00.0100.05315.65
5.3.290.0030.04314.64
5.3.280.0030.08014.54
5.3.270.0100.07314.55
5.3.260.0100.04714.57
5.3.250.0070.04314.43
5.3.240.0070.06314.59
5.3.230.0030.04314.59
5.3.220.0100.05014.35
5.3.210.0070.03714.48
5.3.200.0000.04714.50
5.3.190.0070.07314.53
5.3.180.0030.05714.64
5.3.170.0030.05314.50
5.3.160.0100.07014.50
5.3.150.0100.07714.50
5.3.140.0030.05714.52
5.3.130.0070.05014.40
5.3.120.0070.07314.48
5.3.110.0100.03714.38
5.3.100.0130.07314.01
5.3.90.0070.08013.95
5.3.80.0130.03713.97
5.3.70.0000.04313.93
5.3.60.0200.03714.07
5.3.50.0100.07013.72
5.3.40.0000.05713.91
5.3.30.0030.04713.85
5.3.20.0070.06313.69
5.3.10.0100.03713.64
5.3.00.0170.06313.56
5.2.170.0070.05011.13
5.2.160.0130.05011.10
5.2.150.0000.04311.10
5.2.140.0100.06011.14
5.2.130.0000.04011.07
5.2.120.0100.02310.94
5.2.110.0070.05711.06
5.2.100.0000.06011.24
5.2.90.0030.06311.08
5.2.80.0100.04711.07
5.2.70.0030.06710.92
5.2.60.0000.05711.19
5.2.50.0070.04311.01
5.2.40.0030.04010.89
5.2.30.0030.02710.90
5.2.20.0070.05310.84
5.2.10.0030.06010.86
5.2.00.0070.05010.75
5.1.60.0100.0509.98
5.1.50.0030.05310.04
5.1.40.0030.0479.95
5.1.30.0000.04710.47
5.1.20.0030.06010.40
5.1.10.0000.06010.05
5.1.00.0130.05010.04
5.0.50.0130.0378.52
5.0.40.0030.0378.41
5.0.30.0030.0678.27
5.0.20.0070.0378.18
5.0.10.0000.0378.16
5.0.00.0030.0438.21
4.4.90.0030.0207.54
4.4.80.0000.0307.54
4.4.70.0000.0337.54
4.4.60.0000.0207.54
4.4.50.0030.0307.54
4.4.40.0000.0537.54
4.4.30.0030.0277.54
4.4.20.0030.0337.54
4.4.10.0070.0237.54
4.4.00.0000.0577.54
4.3.110.0000.0237.54
4.3.100.0030.0377.54
4.3.90.0070.0337.54
4.3.80.0070.0207.54
4.3.70.0030.0137.54
4.3.60.0070.0107.54
4.3.50.0030.0137.54
4.3.40.0000.0237.54
4.3.30.0030.0137.54
4.3.20.0000.0177.54
4.3.10.0000.0177.54
4.3.00.0000.0177.54

preferences:
32.79 ms | 401 KiB | 5 Q