3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 22; var_dump($GLOBALS["a"]); // int 22 var_dump(array_search(22, $GLOBALS)); // false var_dump(array_search(22, $GLOBALS, true)); // false

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.1.110.0080.00017.36
8.1.100.0050.00317.44
8.1.90.0040.00417.49
8.1.80.0000.00817.48
8.1.70.0020.00517.35
8.1.60.0000.00917.48
8.1.50.0040.00417.53
8.1.40.0000.00917.56
8.1.30.0040.00417.54
8.1.20.0040.00417.59
8.1.10.0000.00817.44
8.1.00.0030.00617.25
8.0.240.0070.00016.88
8.0.230.0040.00416.82
8.0.220.0000.00616.78
8.0.210.0030.00316.90
8.0.200.0060.00016.94
8.0.190.0050.00316.93
8.0.180.0000.00716.93
8.0.170.0030.00616.95
8.0.160.0080.00016.89
8.0.150.0000.00816.84
8.0.140.0030.00316.89
8.0.130.0030.00313.35
8.0.120.0040.00416.75
8.0.110.0040.00416.75
8.0.100.0040.00416.76
8.0.90.0000.00816.86
8.0.80.0030.01416.86
8.0.70.0040.00416.83
8.0.60.0040.00416.71
8.0.50.0030.00416.91
8.0.30.0060.01417.08
8.0.20.0130.00717.22
8.0.10.0040.00416.95
8.0.00.0130.00616.89
7.4.300.0000.00616.57
7.4.290.0040.00416.50
7.4.280.0030.00616.59
7.4.270.0000.00716.41
7.4.260.0000.00513.25
7.4.250.0040.00416.49
7.4.240.0040.00416.39
7.4.230.0070.00016.50
7.4.220.0030.00316.45
7.4.210.0050.01316.60
7.4.200.0000.00716.63
7.4.130.0190.00016.46
7.4.120.0100.00916.39
7.4.110.0100.01316.36
7.4.100.0120.00616.56
7.4.90.0070.01116.39
7.4.80.0220.00019.39
7.4.70.0070.01016.36
7.4.60.0190.00316.57
7.4.50.0040.01716.11
7.4.40.0040.01516.57
7.4.30.0070.01316.14
7.4.20.0080.00816.52
7.4.10.0070.01015.69
7.4.00.0100.00815.53
7.3.330.0060.00316.26
7.3.320.0030.00313.19
7.3.310.0030.00316.19
7.3.300.0040.00416.22
7.3.290.0070.00016.20
7.3.260.0100.00816.34
7.3.240.0110.00616.43
7.3.230.0100.00616.34
7.3.210.0060.01216.46
7.3.200.0080.00916.50
7.3.190.0080.00816.55
7.3.180.0090.00916.31
7.3.170.0150.00316.19
7.3.160.0140.00316.24
7.3.150.0070.01116.38
7.3.140.0090.00916.44
7.3.130.0090.00915.61
7.3.120.0090.00915.29
7.3.110.0090.00715.25
7.3.100.0100.00514.95
7.3.90.0080.00714.89
7.3.80.0090.00714.97
7.3.70.0100.00614.88
7.3.60.0060.00914.89
7.3.50.0080.00814.97
7.3.40.0050.00914.87
7.3.30.0060.00814.93
7.3.20.0070.00815.48
7.3.10.0100.00815.47
7.3.00.0070.00915.48
7.2.330.0130.00716.43
7.2.320.0070.01816.58
7.2.310.0090.00616.25
7.2.300.0100.01316.62
7.2.290.0110.01116.36
7.2.280.0160.00316.35
7.2.270.0090.00916.65
7.2.260.0070.01215.47
7.2.250.0100.00815.41
7.2.240.0080.00715.15
7.2.230.0100.00715.12
7.2.220.0090.00715.11
7.2.210.0050.01215.16
7.2.200.0070.00815.18
7.2.190.0080.00715.02
7.2.180.0070.00815.05
7.2.170.0050.00815.00
7.2.160.0070.01015.12
7.2.150.0070.01115.49
7.2.140.0100.00515.37
7.2.130.0090.00815.38
7.2.120.0090.01015.29
7.2.110.0080.00715.45
7.2.100.0110.00615.47
7.2.90.0070.00915.56
7.2.80.0050.01015.55
7.2.70.0120.00815.47
7.2.60.0100.00715.49
7.2.50.0070.00915.55
7.2.40.0080.00715.46
7.2.30.0080.00715.44
7.2.20.0080.00715.46
7.2.10.0050.01015.53
7.2.00.0080.00815.46
7.1.330.0080.01015.13
7.1.320.0080.00814.67
7.1.310.0080.00714.63
7.1.300.0080.00814.53
7.1.290.0080.00814.65
7.1.280.0110.00414.65
7.1.270.0070.00814.47
7.1.260.0090.00814.53
7.1.250.0190.00714.41
7.1.240.0100.00914.61
7.1.230.0140.00614.70
7.1.220.0120.00514.69
7.1.210.0110.01114.67
7.1.200.0070.01114.71
7.1.190.0120.00714.64
7.1.180.0170.00714.67
7.1.170.0120.00814.65
7.1.160.0050.01214.72
7.1.150.0090.00814.67
7.1.140.0110.00714.67
7.1.130.0070.01014.58
7.1.120.0070.01214.59
7.1.110.0100.00914.65
7.1.100.0140.00914.51
7.1.90.0140.00814.57
7.1.80.0090.00914.67
7.1.70.0130.00914.70
7.1.60.0150.00714.74
7.1.50.0130.00714.71
7.1.40.0110.00614.64
7.1.30.0120.00714.65
7.1.20.0160.00814.69
7.1.10.0110.00914.74
7.1.00.0120.00814.69
7.0.330.0150.00513.93
7.0.320.0090.01213.91
7.0.310.0100.00913.98
7.0.300.0110.00913.89
7.0.290.0090.00913.83
7.0.280.0130.00513.86
7.0.270.0110.00713.73
7.0.260.0100.01213.83
7.0.250.0150.00613.83
7.0.240.0150.01113.99
7.0.230.0170.00613.92
7.0.220.0160.01013.92
7.0.210.0110.01114.03
7.0.200.0150.00813.94
7.0.190.0160.00714.11
7.0.180.0170.00413.83
7.0.170.0080.01113.97
7.0.160.0130.00613.93
7.0.150.0130.00913.90
7.0.140.0190.00413.84
7.0.130.0130.00713.79
7.0.120.0170.00413.86
7.0.110.0200.00413.98
7.0.100.0130.00814.01
7.0.90.0140.01113.76
7.0.80.0140.01213.85
7.0.70.0130.00913.91
7.0.60.0140.00813.84
7.0.50.0160.00614.03
7.0.40.0140.00514.11
7.0.30.0190.00513.86
7.0.20.0100.01013.92
7.0.10.0120.01113.98
7.0.00.0150.00513.91
5.6.400.0130.00814.80
5.6.390.0120.00914.58
5.6.380.0130.00914.63
5.6.370.0110.00814.71
5.6.360.0110.01114.73
5.6.350.0090.00914.61
5.6.340.0120.00814.68
5.6.330.0110.01014.50
5.6.320.0100.01114.78
5.6.310.0150.00814.66
5.6.300.0150.00914.65
5.6.290.0150.00614.54
5.6.280.0100.01114.90
5.6.270.0120.01014.72
5.6.260.0140.01114.51
5.6.250.0160.00614.83
5.6.240.0180.00714.65
5.6.230.0170.00814.75
5.6.220.0140.00614.53
5.6.210.0180.00514.76
5.6.200.0130.00914.60
5.6.190.0140.00814.59
5.6.180.0170.00914.57
5.6.170.0170.00714.65
5.6.160.0100.01414.79
5.6.150.0160.01014.46
5.6.140.0160.00814.69
5.6.130.0120.01114.62
5.6.120.0180.00814.50
5.6.110.0160.00714.60
5.6.100.0140.00814.67
5.6.90.0190.00614.68
5.6.80.0140.01114.70
5.6.70.0140.01114.70
5.6.60.0130.01014.54
5.6.50.0130.01014.57
5.6.40.0150.00914.66
5.6.30.0160.00614.62
5.6.20.0200.00614.77
5.6.10.0100.01114.60
5.6.00.0130.01114.79
5.5.380.0210.00514.66
5.5.370.0190.00614.77
5.5.360.0140.01014.81
5.5.350.0140.01014.76
5.5.340.0160.00814.94
5.5.330.0160.00614.75
5.5.320.0140.01014.78
5.5.310.0150.00914.79
5.5.300.0140.00714.59
5.5.290.0210.00614.70
5.5.280.0160.00514.72
5.5.270.0130.01014.61
5.5.260.0160.00714.79
5.5.250.0150.00814.56
5.5.240.0120.01114.52
5.5.230.0130.01014.69
5.5.220.0130.00914.75
5.5.210.0130.01014.58
5.5.200.0140.01014.58
5.5.190.0140.00714.65
5.5.180.0160.00714.67
5.5.170.0180.00614.64
5.5.160.0160.01014.59
5.5.150.0190.00514.62
5.5.140.0150.01014.58
5.5.130.0130.01114.58
5.5.120.0170.00814.53
5.5.110.0190.00414.51
5.5.100.0120.01014.70
5.5.90.0130.01014.52
5.5.80.0150.01114.66
5.5.70.0150.01014.47
5.5.60.0140.00914.68
5.5.50.0150.00714.67
5.5.40.0140.00914.75
5.5.30.0160.00814.51
5.5.20.0180.00414.56
5.5.10.0180.00514.57
5.5.00.0160.00614.63
5.4.450.0110.00711.73
5.4.440.0110.00611.78
5.4.430.0090.00711.82
5.4.420.0120.00611.70
5.4.410.0090.00811.81
5.4.400.0120.00611.59
5.4.390.0140.00311.63
5.4.380.0120.00511.71
5.4.370.0110.00711.67
5.4.360.0110.00811.73
5.4.350.0100.00811.67
5.4.340.0140.00311.69
5.4.330.0140.00411.63
5.4.320.0090.00911.65
5.4.310.0120.00611.76
5.4.300.0140.00411.77
5.4.290.0110.00711.74
5.4.280.0100.00711.69
5.4.270.0110.00611.79
5.4.260.0100.00811.80
5.4.250.0090.00811.81
5.4.240.0150.00511.70
5.4.230.0120.00711.67
5.4.220.0080.00811.65
5.4.210.0130.00511.72
5.4.200.0100.00711.83
5.4.190.0140.00611.72
5.4.180.0140.00411.72
5.4.170.0100.00711.79
5.4.160.0100.00711.68
5.4.150.0080.00911.66
5.4.140.0100.00611.68
5.4.130.0090.00711.80
5.4.120.0070.01011.79
5.4.110.0110.00611.66
5.4.100.0100.00711.77
5.4.90.0140.00211.81
5.4.80.0110.00611.74
5.4.70.0070.01011.61
5.4.60.0100.00611.71
5.4.50.0090.00711.71
5.4.40.0140.00211.72
5.4.30.0160.00111.63
5.4.20.0120.00611.70
5.4.10.0140.00311.74
5.4.00.0130.00511.78
5.3.290.0150.00411.83
5.3.280.0100.00811.63
5.3.270.0110.00511.78
5.3.260.0100.00711.67
5.3.250.0110.00511.64
5.3.240.0110.00511.57
5.3.230.0090.00711.59
5.3.220.0090.00811.68
5.3.210.0120.00411.69
5.3.200.0130.00411.65
5.3.190.0100.00611.68
5.3.180.0070.00911.75
5.3.170.0090.00611.70
5.3.160.0090.00711.78
5.3.150.0110.00511.76
5.3.140.0090.00711.78
5.3.130.0120.00511.62
5.3.120.0120.00411.70
5.3.110.0100.00711.65
5.3.100.0090.00611.70
5.3.90.0100.00711.65
5.3.80.0070.00911.56
5.3.70.0120.00611.61
5.3.60.0110.00511.74
5.3.50.0120.00711.70
5.3.40.0110.00611.66
5.3.30.0110.00511.65
5.3.20.0120.00511.67
5.3.10.0080.00911.59
5.3.00.0140.00611.54
5.2.170.0050.00811.34
5.2.160.0060.00611.38
5.2.150.0080.00511.35
5.2.140.0080.00711.32
5.2.130.0060.00611.30
5.2.120.0060.00811.32
5.2.110.0070.00711.31
5.2.100.0110.00511.34
5.2.90.0090.00511.30
5.2.80.0060.00811.29
5.2.70.0110.00311.29
5.2.60.0090.00511.25
5.2.50.0080.00511.29
5.2.40.0080.00511.32
5.2.30.0090.00511.28
5.2.20.0100.00311.27
5.2.10.0060.00611.23
5.2.00.0050.00711.20
5.1.60.0050.00510.99
5.1.50.0060.00311.00
5.1.40.0070.00411.03
5.1.30.0030.00711.07
5.1.20.0070.00311.07
5.1.10.0060.00311.03
5.1.00.0040.00510.86
5.0.50.0050.00410.80
5.0.40.0060.00310.80
5.0.30.0050.00410.80
5.0.20.0040.00510.80
5.0.10.0040.00510.80
5.0.00.0020.00610.80
4.4.90.0070.00310.80
4.4.80.0040.00310.80
4.4.70.0020.00510.80
4.4.60.0040.00310.80
4.4.50.0030.00410.80
4.4.40.0030.00310.80
4.4.30.0040.00210.80
4.4.20.0040.00210.80
4.4.10.0010.00610.80
4.4.00.0020.00410.80
4.3.110.0010.00510.80
4.3.100.0040.00210.80
4.3.90.0060.00010.80
4.3.80.0040.00210.80
4.3.70.0040.00310.80
4.3.60.0030.00410.80
4.3.50.0040.00310.80
4.3.40.0030.00310.80
4.3.30.0010.00510.80
4.3.20.0040.00210.80
4.3.10.0020.00310.80
4.3.00.0020.00410.80

preferences:
82.69 ms | 406 KiB | 5 Q