3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input="id=www session.timeout=120 session.server:0.host=127.0.0.1 session.server:0.port=1111 session.server:0.id=session1 session.server:1.host=127.0.0.1 session.server:1.port=1111 session.server:1.id=session2 image.width=640 image.height=480 image.watermark.small=wsmall.png image.watermark.normal=wnormal.png"; function parse(&$arr,$s,$numeric) { if( !preg_match( '/[.=:]/', $s, $matches, PREG_OFFSET_CAPTURE ) ) return; $m = $matches[0][1]; $key = substr( $s, 0, $m ); if( $numeric ) $key = intval( $key ); if( $s[$m] === '=' ) { $arr[$key] = substr( $s, $m+1 ); } else { if( !array_key_exists( $key, $arr ) ) $arr[$key] = array(); parse( $arr[$key], substr( $s, $m+1 ), $s[$m] === ':' ); } } $arr = array(); foreach( explode( PHP_EOL, $input ) as $line ) parse( $arr, $line, false ); var_dump( $arr ); ?>

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.0110.00718.43
8.3.50.0140.00521.33
8.3.40.0120.00319.07
8.3.30.0160.00018.82
8.3.20.0040.00420.36
8.3.10.0000.00821.90
8.3.00.0050.00320.15
8.2.180.0060.01617.00
8.2.170.0160.00322.96
8.2.160.0070.00719.29
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0090.00017.75
8.2.110.0070.00319.27
8.2.100.0080.00417.84
8.2.90.0000.00819.09
8.2.80.0050.00317.97
8.2.70.0080.00017.73
8.2.60.0050.00318.04
8.2.50.0030.00618.07
8.2.40.0000.00819.38
8.2.30.0070.00320.56
8.2.20.0040.00417.97
8.2.10.0040.00418.22
8.2.00.0030.00518.30
8.1.280.0120.00325.92
8.1.270.0070.00723.96
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00622.59
8.1.230.0090.00320.93
8.1.220.0080.00017.77
8.1.210.0000.00918.77
8.1.200.0040.00717.35
8.1.190.0000.00817.47
8.1.180.0040.00418.10
8.1.170.0030.00518.78
8.1.160.0070.00021.96
8.1.150.0040.00418.86
8.1.140.0000.00817.61
8.1.130.0000.00917.66
8.1.120.0040.00417.60
8.1.110.0040.00417.55
8.1.100.0050.00217.62
8.1.90.0000.00717.64
8.1.80.0000.00817.53
8.1.70.0040.00417.61
8.1.60.0030.00517.63
8.1.50.0040.00417.58
8.1.40.0030.00617.60
8.1.30.0030.00617.75
8.1.20.0000.00817.73
8.1.10.0070.00017.64
8.1.00.0000.00917.61
8.0.300.0000.00718.77
8.0.290.0050.00317.00
8.0.280.0070.00018.50
8.0.270.0000.00717.31
8.0.260.0030.00318.49
8.0.250.0050.00317.04
8.0.240.0030.00317.14
8.0.230.0030.00517.10
8.0.220.0040.00417.09
8.0.210.0050.00317.04
8.0.200.0000.00917.01
8.0.190.0000.01117.02
8.0.180.0000.00817.11
8.0.170.0000.00817.11
8.0.160.0000.00816.97
8.0.150.0040.00417.04
8.0.140.0000.00816.96
8.0.130.0030.00313.46
8.0.120.0020.00516.99
8.0.110.0040.00417.07
8.0.100.0040.00417.02
8.0.90.0000.00717.05
8.0.80.0080.00817.01
8.0.70.0000.00816.89
8.0.60.0050.00316.97
8.0.50.0070.00016.93
8.0.30.0070.01017.23
8.0.20.0080.01317.40
8.0.10.0040.00417.19
8.0.00.0110.00817.10
7.4.330.0000.00515.09
7.4.320.0000.00616.76
7.4.300.0000.00716.69
7.4.290.0030.00516.72
7.4.280.0050.00216.83
7.4.270.0070.00016.67
7.4.260.0080.00016.86
7.4.250.0030.00616.84
7.4.240.0030.00516.66
7.4.230.0030.00616.77
7.4.220.0090.00916.93
7.4.210.0050.00816.88
7.4.200.0030.00316.84
7.4.160.0110.01416.70
7.4.150.0150.00317.40
7.4.140.0040.01817.86
7.4.130.0080.01416.71
7.4.120.0080.01016.64
7.4.110.0160.00716.52
7.4.100.0090.00916.77
7.4.90.0330.01616.92
7.4.80.0070.01419.39
7.4.70.0070.01116.79
7.4.60.0070.01016.57
7.4.50.0040.00416.55
7.4.40.0140.00716.72
7.4.30.0130.00516.55
7.4.00.0000.01315.29
7.3.330.0020.00213.48
7.3.320.0030.00313.60
7.3.310.0000.00916.57
7.3.300.0070.00016.54
7.3.290.0080.00716.53
7.3.280.0090.01016.56
7.3.270.0100.00717.40
7.3.260.0030.01516.46
7.3.250.0100.00816.59
7.3.240.0170.00316.77
7.3.230.0100.00716.39
7.3.210.0140.00316.81
7.3.200.0070.01416.52
7.3.190.0150.00316.93
7.3.180.0040.01416.61
7.3.170.0060.01616.55
7.3.160.0130.00716.57
7.2.330.0140.00617.02
7.2.320.0060.01116.94
7.2.310.0110.00816.89
7.2.300.0070.01016.77
7.2.290.0100.00716.92
7.2.60.0060.01016.99
7.2.00.0070.00719.68
7.1.200.0060.01015.70
7.1.100.0040.00718.48
7.1.70.0030.00717.49
7.1.60.0100.01619.14
7.1.50.0200.01735.12
7.1.00.0000.08022.49
7.0.200.0040.01116.85
7.0.60.2500.06319.94
7.0.50.0130.05717.88
7.0.40.0070.04020.27
7.0.30.0270.06720.14
7.0.20.0330.08320.31
7.0.10.0170.05320.22
7.0.00.0070.04020.40
5.6.280.0030.07320.91
5.6.210.0700.07020.55
5.6.200.0070.08018.23
5.6.190.0100.07020.60
5.6.180.0100.03720.52
5.6.170.0300.06320.51
5.6.160.0070.04020.72
5.6.150.0070.08718.29
5.6.140.0100.07718.19
5.6.130.0100.04018.18
5.6.120.0070.05320.99
5.6.110.0070.04721.12
5.6.100.0030.04320.98
5.6.90.0100.05721.00
5.6.80.0030.04020.36
5.5.350.0030.07320.41
5.5.340.0100.07718.06
5.5.330.0000.08720.32
5.5.320.0030.05320.30
5.5.310.0330.07020.51
5.5.300.0000.05017.98
5.5.290.0000.07717.96
5.5.280.0000.05720.89
5.5.270.0130.07320.90
5.5.260.0000.08720.76
5.5.250.0000.04320.78
5.5.240.0070.07020.36
5.4.450.0630.05019.59
5.4.440.0630.05019.61
5.4.430.0530.05719.60
5.4.420.0530.06319.55
5.4.410.0630.05019.39
5.4.400.0630.04719.04
5.4.390.0600.05019.28
5.4.380.0600.05019.02
5.4.370.0600.05019.28
5.4.360.0530.06019.21
5.4.350.0500.06018.81
5.4.340.0530.06019.21
5.4.320.0630.05719.04
5.4.310.0600.05319.04
5.4.300.0600.05318.88
5.4.290.0470.06019.20
5.4.280.0600.05019.04
5.4.270.0670.05019.04
5.4.260.0600.05719.19
5.4.250.0600.06719.27
5.4.240.0630.05019.23
5.4.230.0630.05319.27
5.4.220.0530.06319.02
5.4.210.0630.05019.23
5.4.200.0800.04718.98
5.4.190.0700.04319.27
5.4.180.0530.06019.13
5.4.170.0670.05718.80
5.4.160.0570.05718.79
5.4.150.0630.04719.00
5.4.140.0500.06016.50
5.4.130.0570.05016.39
5.4.120.0530.05316.54
5.4.110.0630.04316.62
5.4.100.0630.05716.61
5.4.90.0530.05316.59
5.4.80.0530.05316.59
5.4.70.0030.05716.25
5.4.60.0000.06016.43
5.4.50.0070.04716.56
5.4.40.0030.03016.54
5.4.30.0030.05316.63
5.4.20.0270.06016.43
5.4.10.0230.03316.39

preferences:
57.4 ms | 401 KiB | 5 Q