3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Example { protected $_data = [ "foo" => "bar", "baz" => "crazy" ]; public function __get( $key ) { return $_data[ $key ]; } } $e = new Example(); var_dump( $e->foo );

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.00716.74
8.3.50.0050.01316.22
8.3.40.0110.00318.84
8.3.30.0040.01118.68
8.3.20.0080.00018.66
8.3.10.0080.00018.53
8.3.00.0060.00319.35
8.2.180.0060.00916.75
8.2.170.0120.00322.96
8.2.160.0110.00720.96
8.2.150.0060.00324.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0080.00019.18
8.2.110.0040.00419.27
8.2.100.0070.00317.91
8.2.90.0070.00019.25
8.2.80.0000.00919.28
8.2.70.0050.00317.75
8.2.60.0080.00017.90
8.2.50.0040.00418.07
8.2.40.0000.00818.14
8.2.30.0080.00017.98
8.2.20.0060.00317.72
8.2.10.0070.00017.79
8.2.00.0040.00717.85
8.1.280.0110.00325.92
8.1.270.0060.00324.66
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0050.00821.98
8.1.230.0080.00320.98
8.1.220.0060.00318.77
8.1.210.0000.00719.11
8.1.200.0060.00317.35
8.1.190.0050.00317.53
8.1.180.0000.00818.10
8.1.170.0000.00818.68
8.1.160.0040.00418.92
8.1.150.0040.00418.59
8.1.140.0030.00517.31
8.1.130.0030.00317.75
8.1.120.0040.00417.45
8.1.110.0070.00017.36
8.1.100.0000.00817.39
8.1.90.0070.00017.30
8.1.80.0070.00017.40
8.1.70.0040.00417.39
8.1.60.0000.00717.52
8.1.50.0040.00417.46
8.1.40.0000.00717.54
8.1.30.0040.00417.64
8.1.20.0000.00717.63
8.1.10.0030.00517.63
8.1.00.0050.00317.48
8.0.300.0000.00819.85
8.0.290.0040.00316.63
8.0.280.0030.00318.43
8.0.270.0070.00017.21
8.0.260.0050.00316.83
8.0.250.0000.00717.00
8.0.240.0030.00316.88
8.0.230.0030.00316.84
8.0.220.0070.00016.80
8.0.210.0040.00416.78
8.0.200.0030.00317.04
8.0.190.0000.00716.95
8.0.180.0040.00416.91
8.0.170.0030.00516.92
8.0.160.0040.00416.96
8.0.150.0040.00416.86
8.0.140.0040.00416.82
8.0.130.0050.00013.32
8.0.120.0040.00416.86
8.0.110.0030.00516.87
8.0.100.0030.00316.87
8.0.90.0070.00016.92
8.0.80.0140.00016.91
8.0.70.0020.00516.93
8.0.60.0040.00416.82
8.0.50.0040.00416.89
8.0.30.0080.01616.97
8.0.20.0120.00817.01
8.0.10.0000.00916.97
8.0.00.0090.01116.83
7.4.330.0030.00313.04
7.4.320.0060.00016.56
7.4.300.0030.00316.53
7.4.290.0030.00316.52
7.4.280.0030.00616.56
7.4.270.0000.00716.63
7.4.260.0060.00013.20
7.4.250.0090.00016.43
7.4.240.0060.00116.54
7.4.230.0070.00016.36
7.4.220.0160.00316.64
7.4.210.0090.00616.57
7.4.200.0000.00716.42
7.4.190.0030.00316.70
7.4.160.0040.01116.45
7.4.150.0080.01116.58
7.4.140.0080.00816.57
7.4.130.0090.00816.50
7.4.120.0080.00816.46
7.4.110.0130.00416.58
7.4.100.0110.00616.66
7.4.90.0150.00616.36
7.4.80.0100.00619.39
7.4.70.0110.00716.50
7.4.60.0040.01216.50
7.4.50.0060.00616.43
7.4.40.0070.01116.39
7.4.30.0090.00916.49
7.4.00.0090.00315.05
7.3.330.0000.00613.23
7.3.320.0060.00013.33
7.3.310.0030.00316.19
7.3.300.0000.00716.37
7.3.290.0060.00916.39
7.3.280.0070.00816.36
7.3.270.0100.01016.32
7.3.260.0200.00516.30
7.3.250.0090.01416.44
7.3.240.0140.00716.59
7.3.230.0070.01016.57
7.3.210.0100.01016.30
7.3.200.0130.00316.63
7.3.190.0060.00916.61
7.3.180.0110.01316.24
7.3.170.0070.01116.43
7.3.160.0060.01516.30
7.3.120.0080.00714.82
7.3.110.0050.01114.71
7.3.100.0020.01114.62
7.3.90.0120.00314.64
7.3.80.0080.00714.89
7.3.70.0080.00714.66
7.3.60.0050.00914.77
7.3.50.0140.00214.81
7.3.40.0080.00314.72
7.3.30.0020.01214.63
7.3.20.0090.00516.60
7.3.10.0050.01116.51
7.3.00.0090.00616.44
7.2.330.0070.01116.39
7.2.320.0100.00716.26
7.2.310.0090.01316.31
7.2.300.0070.01016.72
7.2.290.0040.01416.74
7.2.240.0020.01214.89
7.2.230.0070.00815.11
7.2.220.0060.00814.70
7.2.210.0050.01014.75
7.2.200.0050.00814.77
7.2.190.0070.00814.88
7.2.180.0030.00814.68
7.2.170.0070.00914.97
7.2.160.0030.01114.72
7.2.150.0030.00916.67
7.2.140.0100.00216.76
7.2.130.0030.01316.84
7.2.120.0100.00516.69
7.2.110.0090.00716.85
7.2.100.0060.00916.74
7.2.90.0060.01116.82
7.2.80.0040.01116.59
7.2.70.0100.00716.88
7.2.60.0050.00716.92
7.2.50.0030.01016.92
7.2.40.0090.00517.01
7.2.30.0100.00716.75
7.2.20.0080.00716.92
7.2.10.0070.00917.02
7.2.00.0030.01017.57
7.1.330.0050.00715.71
7.1.320.0090.00715.54
7.1.310.0040.00815.76
7.1.300.0030.00915.65
7.1.290.0040.00915.68
7.1.280.0060.00815.81
7.1.270.0040.01115.50
7.1.260.0080.00315.81
7.1.250.0060.00615.79
7.1.100.0060.00617.77
7.1.70.0000.01017.06
7.1.60.0030.01019.40
7.1.50.0100.01017.04
7.1.00.0000.07022.54
7.0.200.0030.00516.48
7.0.140.0100.06721.95
7.0.120.0030.06722.17
7.0.60.0030.04320.03
7.0.50.0100.07017.84
7.0.40.3300.04020.16
7.0.30.3300.03320.19
7.0.20.2700.05020.15
7.0.10.3370.03720.27
7.0.00.3230.04320.30
5.6.280.0000.07720.82
5.6.210.0070.08720.55
5.6.200.0000.07318.29
5.6.190.3530.04020.51
5.6.180.3300.04020.44
5.6.170.3200.04020.71
5.6.160.3270.04020.55
5.6.150.3370.03720.36
5.6.140.3200.04720.56
5.6.130.3300.04020.30
5.6.120.1230.08320.29
5.6.110.0070.08720.26
5.6.100.4170.03020.32
5.6.90.3700.03020.19
5.6.80.3270.04319.70
5.6.70.3530.04019.69
5.6.60.0070.05719.58
5.6.50.4100.04319.70
5.6.40.3300.04019.68
5.6.30.3400.04319.68
5.6.20.3230.04319.63
5.6.10.3700.04019.63
5.6.00.3970.04319.65
5.5.350.0270.05720.35
5.5.340.0200.07318.07
5.5.330.1300.05720.30
5.5.320.2900.03720.28
5.5.310.3030.04320.35
5.5.300.3300.04020.11
5.5.290.3200.04720.15
5.5.280.0070.06320.15
5.5.270.0030.08720.13
5.5.260.3930.03720.08
5.5.250.4200.04319.92
5.5.240.3370.03719.39
5.5.230.3630.03719.53
5.5.220.0130.05719.48
5.5.210.3770.04019.45
5.5.200.3630.03719.51
5.5.190.3230.04019.46
5.5.180.3230.04019.36
5.5.160.4230.03719.50
5.5.150.4130.04019.45
5.5.140.3900.04019.68
5.5.130.0030.08319.45
5.5.120.4230.04019.50
5.5.110.3870.04019.67
5.5.100.4030.04319.39
5.5.90.3900.03719.26
5.5.80.3830.04019.57
5.5.70.3630.04019.32
5.5.60.4130.03719.34
5.5.50.3930.04019.39
5.5.40.3970.04019.36
5.5.30.4100.04019.43
5.5.20.4230.04319.42
5.5.10.3730.03319.32
5.5.00.2800.03319.41
5.4.450.3330.04019.42
5.4.440.0030.08019.42
5.4.430.1600.06019.43
5.4.420.3870.03319.21
5.4.410.4230.04019.25
5.4.400.3500.03719.12
5.4.390.3530.03319.10
5.4.380.0100.06719.05
5.4.370.2370.04318.96
5.4.360.3900.04319.02
5.4.350.3600.04019.10
5.4.340.3330.03719.14
5.4.320.4100.04019.27
5.4.310.4170.03318.99
5.4.300.0000.04319.14
5.4.290.0100.03719.05
5.4.280.2570.04319.27
5.4.270.4170.04319.03
5.4.260.3830.03719.02
5.4.250.3900.03319.01
5.4.240.4000.03718.95
5.4.230.3800.04019.01
5.4.220.4230.04019.04
5.4.210.3430.03319.05
5.4.200.4100.03718.88
5.4.190.4200.03019.04
5.4.180.3500.04019.05
5.4.170.3600.03319.11
5.4.160.3200.04019.12
5.4.150.3530.03319.00
5.4.140.3570.03016.45
5.4.130.3270.03016.32
5.4.120.3700.04716.39
5.4.110.3600.04016.36
5.4.100.3200.03716.48
5.4.90.3270.03716.47
5.4.80.3500.04016.36
5.4.70.3930.03016.30
5.4.60.4170.03316.46
5.4.50.3570.03716.35
5.4.40.3170.03716.46
5.4.30.3370.03016.45
5.4.20.3430.03316.42
5.4.10.3270.03316.56
5.4.00.3300.04015.91
5.3.290.4230.03714.62
5.3.280.4070.03314.55
5.3.270.3700.03714.55
5.3.260.3300.04314.65
5.3.250.3500.03314.67
5.3.240.3370.03714.60
5.3.230.3500.03714.62
5.3.220.3530.04014.52
5.3.210.3630.04314.59
5.3.200.3770.03714.63
5.3.190.3300.03714.57
5.3.180.3200.03714.60
5.3.170.3530.03714.59
5.3.160.3730.04014.62
5.3.150.4230.03314.66
5.3.140.3830.03014.58
5.3.130.3200.03714.56
5.3.120.3830.04014.61
5.3.110.3370.02714.53
5.3.100.3330.04314.03
5.3.90.3400.03313.87
5.3.80.3530.03714.22
5.3.70.3530.03314.11
5.3.60.3130.03014.00
5.3.50.3270.04014.02
5.3.40.3230.03713.83
5.3.30.3330.03313.91
5.3.20.3300.03013.70
5.3.10.3230.03013.69
5.3.00.3030.03013.53
5.2.170.2700.03011.10
5.2.160.2730.02711.36
5.2.150.2700.03011.13
5.2.140.2430.03311.16
5.2.130.2800.03011.14
5.2.120.2730.03010.99
5.2.110.2670.03011.06
5.2.100.2770.03010.95
5.2.90.2800.02311.31
5.2.80.2670.03311.14
5.2.70.2870.02711.08
5.2.60.3030.02010.93
5.2.50.2970.02711.11
5.2.40.2730.02311.09
5.2.30.2930.02311.01
5.2.20.2730.03010.96
5.2.10.2400.02710.91
5.2.00.2400.02710.75
5.1.60.2200.0279.82
5.1.50.2400.02710.01
5.1.40.2600.0309.96
5.1.30.2670.02710.32
5.1.20.2400.02710.45
5.1.10.2600.02710.27
5.1.00.2400.0309.98
5.0.50.1070.0208.57
5.0.40.1270.0278.48
5.0.30.1030.0338.25
5.0.20.1600.0208.17
5.0.10.1170.0208.23
5.0.00.1330.0408.21
4.4.90.1170.0135.89
4.4.80.1430.0175.78
4.4.70.1300.0205.79
4.4.60.1270.0175.88
4.4.50.1270.0135.90
4.4.40.1500.0335.81
4.4.30.1570.0175.88
4.4.20.1230.0135.93
4.4.10.1330.0175.85
4.4.00.1300.0275.83
4.3.110.1300.0175.73
4.3.100.1070.0175.71
4.3.90.1430.0175.75
4.3.80.1330.0275.79
4.3.70.1470.0135.73
4.3.60.1300.0175.68
4.3.50.1600.0205.78
4.3.40.1700.0275.75
4.3.30.0930.0205.16
4.3.20.0830.0175.16
4.3.10.0700.0235.16
4.3.00.0930.0235.16

preferences:
50.82 ms | 400 KiB | 5 Q