3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $t = "yolo"; } $f = new Foo(); $f = (array) $f; var_dump($f["\0Foo\0t"]);
based on i71gB

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.0.0beta10.0090.00916.59
8.0.0alpha30.0040.01416.65
8.0.0alpha20.0100.01316.42
8.0.0alpha10.0040.01416.59
7.4.90.0150.00316.30
7.4.80.0000.01719.39
7.4.70.0130.00316.27
7.4.60.0030.01316.44
7.4.50.0030.01016.46
7.4.40.0030.01216.38
7.4.30.0130.00316.40
7.4.00.0070.00715.20
7.3.210.0180.02516.55
7.3.200.0090.00616.57
7.3.190.0120.00816.39
7.3.180.0100.00616.18
7.3.170.0040.01516.32
7.3.160.0040.01116.57
7.2.330.0090.00916.36
7.2.320.0090.00916.72
7.2.310.0130.00316.78
7.2.300.0170.00316.71
7.2.290.0070.01116.41
7.2.110.0190.00614.64
7.2.100.0250.00314.80
7.2.90.0210.00414.70
7.2.80.0140.01114.30
7.2.70.0260.00315.23
7.2.60.1250.00515.03
7.2.50.1290.00614.78
7.2.40.1240.01015.26
7.2.30.1660.00815.18
7.2.20.1550.00915.16
7.2.10.1160.00715.91
7.2.00.1240.00615.95
7.1.230.0180.00913.79
7.1.220.0190.00313.95
7.1.210.0200.00413.81
7.1.200.0140.00914.66
7.1.190.0250.00614.04
7.1.180.1000.00313.87
7.1.170.1570.01013.77
7.1.160.1680.01115.72
7.1.150.1620.00915.69
7.1.140.1530.00715.76
7.1.130.1180.00916.15
7.1.120.1140.00915.98
7.1.110.1110.00815.65
7.1.100.1110.01015.53
7.1.90.1250.00715.48
7.1.80.1190.00715.58
7.1.70.1050.00814.92
7.1.60.1190.01032.89
7.1.50.1250.00932.64
7.1.40.0980.01132.28
7.1.30.1200.01032.42
7.1.20.1080.01132.48
7.1.10.1000.01014.47
7.1.00.1050.00814.64
7.0.310.0320.00413.24
7.0.300.1060.00713.49
7.0.290.1540.01015.58
7.0.280.0070.01013.15
7.0.270.1110.00715.81
7.0.260.1160.00715.73
7.0.250.1120.00915.27
7.0.240.1410.00815.38
7.0.230.1100.00815.40
7.0.220.1270.01015.37
7.0.210.1270.01014.32
7.0.200.1090.00814.64
7.0.190.1100.01014.50
7.0.180.0750.00814.20
7.0.170.1160.01014.14
7.0.160.0250.01114.15
7.0.150.0240.00914.27
7.0.140.0770.01014.21
7.0.130.0950.01114.34
7.0.120.1000.00814.48
7.0.110.1100.01014.27
7.0.100.0180.00614.35
7.0.90.0610.00914.29
7.0.80.0870.00714.37
7.0.70.0630.01014.30
7.0.60.0980.01014.24
7.0.50.1720.01114.28
7.0.40.1250.00814.32
7.0.30.1000.00914.32
7.0.20.0770.00914.35
7.0.10.0790.00814.41
7.0.00.0760.01014.27
5.6.380.0070.00714.39
5.6.370.0160.00614.18
5.6.360.0110.00614.50
5.6.350.0130.00314.16
5.6.340.0140.00614.59
5.6.330.0100.00714.30
5.6.320.0130.01014.25
5.6.310.0110.01114.27
5.6.300.0180.05319.24
5.6.290.0180.04419.11
5.6.280.0180.04319.38
5.6.270.0150.04519.30
5.6.260.0130.04819.26
5.6.250.0210.04619.30
5.6.240.0170.04919.24
5.6.230.0150.04919.23
5.6.220.0180.04819.12
5.6.210.0140.05219.35
5.6.200.0150.04919.19
5.6.190.0150.04719.26
5.6.180.0130.04919.21
5.6.170.0130.04619.25
5.6.160.0150.04719.17
5.6.150.0180.05219.31
5.6.140.0150.05219.12
5.6.130.0130.04619.21
5.6.120.0140.04919.29
5.6.110.0180.04719.15
5.6.100.0140.04619.12
5.6.90.0140.04419.11
5.6.80.0170.03918.63
5.6.70.0160.04818.75
5.6.60.0150.04618.74
5.6.50.0140.04118.71
5.6.40.0160.04218.72
5.6.30.0170.04718.79
5.6.20.0140.05118.75
5.6.10.0140.04418.71
5.6.00.0170.04818.70
5.5.380.0180.04115.96
5.5.370.0130.04215.89
5.5.360.0190.04215.95
5.5.350.0130.04015.91
5.5.340.0140.04716.30
5.5.330.0140.04316.31
5.5.320.0130.04516.17
5.5.310.0170.04416.25
5.5.300.0120.04416.19
5.5.290.0170.04116.16
5.5.280.0120.04416.27
5.5.270.0160.04516.27
5.5.260.0100.04816.13
5.5.250.0150.05216.20
5.5.240.0120.04015.69
5.5.230.0100.04915.82
5.5.220.0100.04315.63
5.5.210.0120.04215.70
5.5.200.0100.04315.75
5.5.190.0100.04415.83
5.5.180.0120.04815.70
5.5.170.0090.00614.21
5.5.160.0180.03615.85
5.5.150.0120.04615.78
5.5.140.0120.04015.58
5.5.130.0160.03615.81
5.5.120.0130.04215.90
5.5.110.0120.04215.66
5.5.100.0150.04515.67
5.5.90.0110.04715.73
5.5.80.0130.05415.54
5.5.70.0130.04315.71
5.5.60.0110.04115.64
5.5.50.0110.04515.71
5.5.40.0120.04415.65
5.5.30.0110.04215.71
5.5.20.0100.04615.70
5.5.10.0140.04615.72
5.5.00.0120.04315.56
5.4.450.0140.04617.40
5.4.440.0160.04117.30
5.4.430.0120.04517.33
5.4.420.0120.04417.26
5.4.410.0150.04417.11
5.4.400.0130.04417.03
5.4.390.0120.04317.02
5.4.380.0120.04317.06
5.4.370.0100.04217.00
5.4.360.0120.04217.06
5.4.350.0150.04316.95
5.4.340.0150.04516.95
5.4.330.0070.00711.05
5.4.320.0150.04117.07
5.4.310.0100.04216.92
5.4.300.0170.04317.00
5.4.290.0140.04116.89
5.4.280.0160.03917.05
5.4.270.0130.04817.00
5.4.260.0180.04316.96
5.4.250.0150.04216.96
5.4.240.0120.04316.92
5.4.230.0120.04316.94
5.4.220.0110.04416.96
5.4.210.0110.04316.98
5.4.200.0130.05016.93
5.4.190.0120.04317.06
5.4.180.0130.04217.00
5.4.170.0120.04416.95
5.4.160.0150.04217.01
5.4.150.0150.04017.06
5.4.140.0160.04315.14
5.4.130.0110.04415.11
5.4.120.0120.04315.14
5.4.110.0130.04015.21
5.4.100.0150.04115.28
5.4.90.0160.04515.14
5.4.80.0140.04215.17
5.4.70.0140.04015.23
5.4.60.0160.03815.13
5.4.50.0160.04515.08
5.4.40.0110.03815.23
5.4.30.0160.04215.21
5.4.20.0140.03615.20
5.4.10.0080.04315.18
5.4.00.0130.04114.68
5.3.290.0100.05013.80
5.3.280.0120.04413.63
5.3.270.0120.04613.81
5.3.260.0120.04613.69
5.3.250.0130.04313.66
5.3.240.0130.04013.67
5.3.230.0150.04213.69
5.3.220.0140.04413.50
5.3.210.0130.04513.63
5.3.200.0090.04413.56
5.3.190.0110.04113.57
5.3.180.0120.03813.54
5.3.170.0150.03713.72
5.3.160.0120.04513.62
5.3.150.0150.03713.57
5.3.140.0120.03713.67
5.3.130.0120.04613.58
5.3.120.0110.04213.61
5.3.110.0130.04113.61
5.3.100.0130.04113.18
5.3.90.0120.04313.21
5.3.80.0110.04113.26
5.3.70.0110.04213.17
5.3.60.0120.03913.34
5.3.50.0140.03613.10
5.3.40.0150.03613.19
5.3.30.0120.04213.14
5.3.20.0120.03713.00
5.3.10.0100.03712.98
5.3.00.0120.04112.85
5.2.170.0090.03610.78
5.2.160.0100.03310.80
5.2.150.0120.03110.90
5.2.140.0080.03210.85
5.2.130.0100.03010.72
5.2.120.0110.02810.81
5.2.110.0090.03510.87
5.2.100.0090.03410.78
5.2.90.0090.03210.81
5.2.80.0120.02910.80
5.2.70.0120.03810.83
5.2.60.0080.03410.71
5.2.50.0120.03110.74
5.2.40.0120.02910.72
5.2.30.0090.03410.67
5.2.20.0100.03110.67
5.2.10.0080.03510.63
5.2.00.0100.03210.59
5.1.60.0080.03010.05
5.1.50.0090.02510.02
5.1.40.0070.0309.94
5.1.30.0100.02810.18
5.1.20.0090.02810.27
5.1.10.0070.0289.94
5.1.00.0090.02710.05
5.0.50.0080.0229.01
5.0.40.0080.0218.86
5.0.30.0050.0348.76
5.0.20.0040.0248.84
5.0.10.0050.0238.80
5.0.00.0060.0318.85
4.4.90.0070.0178.65
4.4.80.0040.0188.65
4.4.70.0050.0178.65
4.4.60.0050.0178.65
4.4.50.0050.0178.65
4.4.40.0080.0238.65
4.4.30.0050.0178.65
4.4.20.0050.0188.65
4.4.10.0040.0178.65
4.4.00.0070.0258.65
4.3.110.0050.0168.65
4.3.100.0060.0158.65
4.3.90.0030.0198.65
4.3.80.0050.0258.65
4.3.70.0040.0178.65
4.3.60.0060.0148.65
4.3.50.0070.0158.65
4.3.40.0060.0268.65
4.3.30.0030.0208.65
4.3.20.0020.0218.65
4.3.10.0050.0168.65
4.3.00.0050.0158.65