3v4l.org

run code in 300+ PHP versions simultaneously
<?php $y = new stdClass; $x['token'] = [bin2hex(random_bytes(16))]; $y->token = $x; var_dump(json_encode($y));

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)
7.4.10.0030.01315.07
7.4.00.0120.00615.08
7.3.130.0060.00914.85
7.3.120.0070.01015.03
7.3.110.0040.01414.94
7.3.100.0030.01414.90
7.3.90.0060.01014.88
7.3.80.0040.01114.64
7.3.70.0080.00414.89
7.3.60.0080.00814.77
7.3.50.0140.00414.75
7.3.40.0120.00314.79
7.3.30.0060.00614.96
7.3.20.0070.00716.89
7.3.10.0060.00516.62
7.3.00.0040.01116.45
7.2.260.0080.00814.77
7.2.250.0100.00715.15
7.2.240.0000.01515.27
7.2.230.0060.01014.93
7.2.220.0040.01114.56
7.2.210.0070.00715.04
7.2.200.0000.01114.93
7.2.190.0000.01614.73
7.2.180.0000.01314.77
7.2.170.0000.01715.05
7.2.160.0110.00414.83
7.2.150.0090.00616.86
7.2.140.0070.00716.71
7.2.130.0080.00716.78
7.2.120.0070.00916.79
7.2.110.0100.00516.81
7.2.100.0050.01016.83
7.2.90.0060.00816.91
7.2.80.0080.00516.86
7.2.70.0070.00716.85
7.2.60.0310.00916.41
7.2.50.0050.00816.91
7.2.40.0030.00916.88
7.2.30.0030.01016.89
7.2.20.0050.00716.68
7.2.10.0030.01016.86
7.2.00.0040.00817.34
7.1.330.0030.01015.74
7.1.320.0000.01015.80
7.1.310.0040.01115.86
7.1.300.0000.01715.68
7.1.290.0080.00315.66
7.1.280.0000.01015.79
7.1.270.0040.01115.84
7.1.260.0000.01315.67
7.1.250.0070.00615.89
7.1.240.0090.00315.98
7.1.230.0030.00815.77
7.1.220.0110.00315.95
7.1.210.0100.00315.61
7.1.200.0000.00715.71
7.1.190.0070.00715.93
7.1.180.0070.00715.57
7.1.170.0030.00715.55
7.1.160.0060.00915.69
7.1.150.0000.01215.92
7.1.140.0030.00915.84
7.1.130.0060.00915.71
7.1.120.0040.01115.55
7.1.110.0000.00815.95
7.1.100.0070.00516.91
7.1.90.0070.00715.88
7.1.80.0000.01415.57
7.1.70.0140.01115.45
7.1.60.0240.01224.57
7.1.50.0280.00824.26
7.1.40.0260.01024.22
7.1.30.0590.00624.15
7.1.20.0200.01724.37
7.1.10.0160.01215.30
7.1.00.0190.00715.24
7.0.330.0030.00915.54
7.0.320.0100.00315.52
7.0.310.0000.00715.13
7.0.300.0070.00715.14
7.0.290.0100.00315.18
7.0.280.0030.00615.33
7.0.270.0070.00315.21
7.0.260.0070.00715.41
7.0.250.0080.00815.49
7.0.240.0090.00615.46
7.0.230.0000.01515.50
7.0.220.0040.00815.16
7.0.210.0080.00815.33
7.0.200.0170.01015.08
7.0.190.0140.01015.18
7.0.180.0150.00814.91
7.0.170.0150.00914.71
7.0.160.0100.01115.03
7.0.150.0170.01214.81
7.0.140.0150.01014.93
7.0.130.0170.01115.03
7.0.120.0130.00814.90
7.0.110.0130.01315.05
7.0.100.0080.00914.89
7.0.90.0090.01015.02
7.0.80.0160.00815.00
7.0.70.0160.00815.08
7.0.60.0140.01014.85
7.0.50.0150.01215.04
7.0.40.0100.00814.08
7.0.30.0160.00914.17
7.0.20.0130.01314.02
7.0.10.0140.00713.79
7.0.00.0170.00514.08
5.6.400.0030.00914.59
5.6.390.0070.01314.10
5.6.380.0000.01814.48
5.6.370.0130.00014.22
5.6.360.0030.01314.26
5.6.350.0070.01014.39
5.6.340.0070.00414.36
5.6.330.0070.00714.00
5.6.320.0000.01414.64
5.6.310.0030.01014.35
5.6.300.0060.00614.06
5.6.290.0080.00414.17
5.6.280.0060.00314.18
5.6.270.0070.00814.34
5.6.260.0090.00014.30
5.6.250.0030.00714.21
5.6.240.0090.00613.91
5.6.230.0060.00913.98
5.6.220.0040.00414.09
5.6.210.0070.00713.95
5.6.200.0000.01014.17
5.6.190.0040.00814.25
5.6.180.0040.01114.14
5.6.170.0110.00314.03
5.6.160.0040.01114.23
5.6.150.0070.00314.55
5.6.140.0070.00714.19
5.6.130.0100.00714.49
5.6.120.0060.00614.21
5.6.110.0030.01014.00
5.6.100.0030.01414.16
5.6.90.0000.00914.33
5.6.80.0070.00313.93
5.6.70.0030.00614.35
5.6.60.0040.01114.39
5.6.50.0070.01014.13
5.6.40.0090.00614.02
5.6.30.0110.00314.32
5.6.20.0090.00614.32
5.6.10.0030.00614.34
5.6.00.0070.00714.11

preferences:
36.44 ms | 400 KiB | 5 Q