3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public function __wakeup() { echo 'exploited'; } } $userInput = serialize(new foo); echo $userInput; $serialisedStr = serialize([ $userInput, ]); unserialize($serialisedStr);

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.0130.00618.30
8.3.50.0040.01118.20
8.3.40.0150.00418.67
8.3.30.0090.00618.68
8.3.20.0040.00420.59
8.3.10.0080.00021.95
8.3.00.0080.00023.66
8.2.180.0070.01116.75
8.2.170.0110.00322.96
8.2.160.0120.00920.37
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0150.00026.16
8.2.120.0000.00826.16
8.2.110.0100.00021.14
8.2.100.0110.00017.72
8.2.90.0030.00618.96
8.2.80.0000.00817.97
8.2.70.0000.00818.05
8.2.60.0090.00018.03
8.2.50.0000.00818.10
8.2.40.0000.00719.34
8.2.30.0030.00519.30
8.2.20.0080.00018.04
8.2.10.0000.00819.31
8.2.00.0070.00019.25
8.1.280.0130.00725.92
8.1.270.0060.00320.58
8.1.260.0040.00426.35
8.1.250.0070.00728.09
8.1.240.0060.00322.67
8.1.230.0120.00020.84
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0080.00017.23
8.1.180.0070.00018.10
8.1.170.0040.00418.59
8.1.160.0120.00018.88
8.1.150.0080.00018.87
8.1.140.0040.00420.87
8.1.130.0000.00820.18
8.1.120.0000.00717.41
8.1.110.0000.00817.39
8.1.100.0000.00717.48
8.1.90.0050.00317.48
8.1.80.0080.00017.46
8.1.70.0040.00417.50
8.1.60.0040.00417.60
8.1.50.0030.00517.52
8.1.40.0000.00817.52
8.1.30.0050.00217.62
8.1.20.0060.00617.53
8.1.10.0050.00317.57
8.1.00.0000.00817.41
8.0.300.0060.00319.95
8.0.290.0040.00416.88
8.0.280.0030.00318.49
8.0.270.0000.00817.15
8.0.260.0030.00319.91
8.0.250.0090.00017.00
8.0.240.0030.00316.88
8.0.230.0000.00716.98
8.0.220.0000.00716.96
8.0.210.0000.00716.89
8.0.200.0000.00616.91
8.0.190.0080.00017.01
8.0.180.0060.00316.87
8.0.170.0030.00616.97
8.0.160.0040.00416.94
8.0.150.0000.00816.96
8.0.140.0060.00316.80
8.0.130.0030.00313.36
8.0.120.0030.00516.81
8.0.110.0000.00816.99
8.0.100.0040.00416.86
8.0.90.0000.00816.94
8.0.80.0090.00617.00
8.0.70.0020.00516.98
8.0.60.0000.00816.93
8.0.50.0050.00216.86
8.0.30.0070.01217.15
8.0.20.0120.00617.11
8.0.10.0000.00817.09
8.0.00.0110.00916.93
7.4.330.0030.00315.55
7.4.320.0000.00616.42
7.4.300.0000.00716.44
7.4.290.0040.00416.60
7.4.280.0040.00416.61
7.4.270.0070.00416.49
7.4.260.0070.00013.25
7.4.250.0070.00016.46
7.4.240.0000.00716.51
7.4.230.0070.00016.43
7.4.220.0030.00616.56
7.4.210.0080.00816.58
7.4.200.0030.00316.47
7.4.130.0160.00716.58
7.4.120.0150.00916.48
7.4.110.0090.01216.60
7.4.100.0160.00616.35
7.4.90.0040.01416.30
7.4.80.0190.00319.39
7.4.70.0110.00916.27
7.4.60.0060.00916.48
7.4.50.0040.01516.48
7.4.40.0000.01516.48
7.4.00.0080.00815.11
7.3.330.0000.00616.29
7.3.320.0060.00013.11
7.3.310.0000.00716.28
7.3.300.0000.00716.10
7.3.290.0070.00016.24
7.3.280.0120.00316.24
7.3.260.0120.00916.42
7.3.240.0100.00916.42
7.3.230.0070.00916.20
7.3.210.0090.01216.38
7.3.200.0070.01016.39
7.3.190.0120.00416.20
7.3.180.0090.00616.34
7.3.170.0060.00916.18
7.3.160.0030.01316.49
7.3.80.0000.01114.83
7.3.70.0070.00414.72
7.3.60.0070.00714.47
7.3.50.0100.00614.46
7.3.40.0070.00714.66
7.3.30.0040.00714.85
7.3.20.0110.01114.79
7.3.10.0220.00014.75
7.3.00.0090.00914.93
7.2.330.0150.00316.38
7.2.320.0000.01616.72
7.2.310.0080.00816.69
7.2.300.0110.00716.44
7.2.290.0060.01616.48
7.2.210.0090.00915.17
7.2.200.0080.01115.20
7.2.190.0030.01614.82
7.2.180.0050.01114.90
7.2.170.0070.00315.09
7.2.160.0030.01114.75
7.2.150.0220.00015.09
7.2.140.0190.00314.93
7.2.130.0150.00614.77
7.2.120.0100.00715.02
7.2.110.0100.00714.80
7.2.100.0060.01014.79
7.2.90.0100.00715.04
7.2.80.0170.00715.29
7.2.70.0170.00715.14
7.2.60.0160.00715.03
7.2.50.0150.00615.24
7.2.40.0110.00515.05
7.2.30.0180.00714.92
7.2.20.0120.00615.13
7.2.10.0100.00715.03
7.2.00.0100.00714.96
7.1.310.0150.00614.04
7.1.300.0130.00313.96
7.1.290.0060.00913.87
7.1.280.0130.00713.83
7.1.270.0150.00913.97
7.1.260.1060.01013.73
7.1.250.0280.00613.75

preferences:
42.03 ms | 401 KiB | 5 Q