3v4l.org

run code in 300+ PHP versions simultaneously
<?php function secupress_cache_data( $key, $data = 'trolilol' ) { static $datas = array(); if ( $data !== 'trolilol' ) { $datas[ $key ] = $data; } var_dump( $datas ); return isset( $datas[ $key ] ) ? $datas[ $key ] : 'KO!!'; } secupress_cache_data( 'foo', '123' ); secupress_cache_data( 'bar', null ); secupress_cache_data( 'qux', 'toto' );

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.0070.01418.43
8.3.50.0090.01321.92
8.3.40.0110.01118.84
8.3.30.0130.00618.85
8.3.20.0040.01420.29
8.3.10.0130.00723.53
8.3.00.0110.00819.26
8.2.180.0140.00716.88
8.2.170.0180.00322.96
8.2.160.0110.00720.35
8.2.150.0130.00624.18
8.2.140.0120.00624.66
8.2.130.0000.01117.50
8.2.120.0110.00726.35
8.2.110.0160.00720.39
8.2.100.0080.00418.05
8.2.90.0050.00319.21
8.2.80.0050.00317.97
8.2.70.0000.00817.63
8.2.60.0060.00317.93
8.2.50.0030.00518.07
8.2.40.0040.00419.35
8.2.30.0000.00720.74
8.2.20.0040.00717.67
8.2.10.0040.00418.18
8.2.00.0040.00418.04
8.1.280.0190.00425.92
8.1.270.0060.01223.96
8.1.260.0110.00728.09
8.1.250.0060.01228.09
8.1.240.0070.01423.83
8.1.230.0120.00019.44
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0090.00017.48
8.1.190.0000.00817.38
8.1.180.0040.00418.10
8.1.170.0050.00418.69
8.1.160.0030.00322.09
8.1.150.0070.00018.95
8.1.140.0030.00519.59
8.1.130.0070.00017.59
8.1.120.0000.00717.51
8.1.110.0050.00317.46
8.1.100.0040.00417.34
8.1.90.0000.00717.25
8.1.80.0040.00417.24
8.1.70.0000.00717.24
8.1.60.0050.00317.42
8.1.50.0030.00517.51
8.1.40.0000.00817.48
8.1.30.0040.00417.63
8.1.20.0000.00817.52
8.1.10.0000.00817.57
8.1.00.0050.00317.44
8.0.300.0080.00018.77
8.0.290.0000.00816.63
8.0.280.0030.00318.41
8.0.270.0030.00317.31
8.0.260.0000.00617.27
8.0.250.0000.00716.86
8.0.240.0050.00316.95
8.0.230.0000.00716.77
8.0.220.0000.00716.78
8.0.210.0000.00916.84
8.0.200.0000.00616.90
8.0.190.0050.00316.90
8.0.180.0000.00816.88
8.0.170.0060.00316.89
8.0.160.0000.00716.81
8.0.150.0000.00716.80
8.0.140.0040.00416.79
8.0.130.0030.00313.25
8.0.120.0000.00916.85
8.0.110.0040.00416.74
8.0.100.0000.00716.82
8.0.90.0080.00016.84
8.0.80.0130.01016.73
8.0.70.0040.00416.82
8.0.60.0070.00016.65
8.0.50.0040.00416.81
8.0.30.0080.00917.28
8.0.20.0090.01117.40
8.0.10.0070.00016.84
8.0.00.0100.00916.63
7.4.330.0050.00016.70
7.4.320.0000.00616.33
7.4.300.0030.00316.46
7.4.290.0000.00716.46
7.4.280.0030.00616.41
7.4.270.0000.00816.44
7.4.260.0040.00416.44
7.4.250.0040.00416.56
7.4.240.0000.00716.53
7.4.230.0030.00316.45
7.4.220.0130.00616.48
7.4.210.0120.00516.52
7.4.200.0000.00716.46
7.4.160.0080.00816.32
7.4.150.0140.00317.40
7.4.140.0120.01217.86
7.4.130.0090.01016.44
7.4.120.0090.00716.56
7.4.110.0140.00716.50
7.4.100.0100.01316.50
7.4.90.0090.00916.46
7.4.80.0090.00919.39
7.4.70.0080.01616.51
7.4.60.0070.01016.30
7.4.50.0110.00416.61
7.4.40.0040.01216.36
7.4.30.0080.01416.43
7.4.00.0060.00914.88
7.3.330.0000.00513.37
7.3.320.0030.00313.33
7.3.310.0030.00316.40
7.3.300.0040.00416.36
7.3.290.0030.00316.25
7.3.280.0060.00916.33
7.3.270.0100.00717.40
7.3.260.0130.00316.45
7.3.250.0130.00616.47
7.3.240.0120.00616.32
7.3.230.0180.00416.39
7.3.210.0000.01716.43
7.3.200.0130.00416.25
7.3.190.0130.00416.55
7.3.180.0100.00716.29
7.3.170.0120.01316.27
7.3.160.0160.00616.36
7.2.330.0040.01316.81
7.2.320.0050.01816.59
7.2.310.0120.00616.63
7.2.300.0110.00816.41
7.2.290.0130.00916.32
7.2.00.0030.00919.03
7.1.100.0000.01117.99
7.1.70.0030.00617.25
7.1.60.0070.01719.48
7.1.50.0000.02216.86
7.1.00.0030.07722.50
7.0.200.0710.00414.81
7.0.60.0170.08720.02
7.0.50.0000.09017.95
7.0.40.0070.04020.09
7.0.30.0130.04320.26
7.0.20.0370.07020.10
7.0.10.0100.07720.06
7.0.00.0000.09020.25
5.6.280.0100.06721.00
5.6.210.0030.05320.57
5.6.200.0000.05318.18
5.6.190.0070.04020.50
5.6.180.0300.07320.48
5.6.170.0370.07720.40
5.6.160.0100.07020.52
5.6.150.0070.07318.17
5.6.140.0070.08318.25
5.6.130.0070.05018.12
5.6.120.0070.05021.10
5.6.110.0100.07721.09
5.6.100.0070.08021.02
5.6.90.0070.03721.13
5.6.80.0070.07320.29
5.5.350.0070.04320.39
5.5.340.0070.04017.94
5.5.330.0130.07720.27
5.5.320.0030.06720.24
5.5.310.0200.08020.23
5.5.300.0070.08018.03
5.5.290.0130.08018.08
5.5.280.0170.07720.86
5.5.270.0170.08320.88
5.5.260.0130.08020.68
5.5.250.0000.04320.61
5.5.240.0230.06720.15

preferences:
63.67 ms | 401 KiB | 5 Q